0

我使用了这个选择查询,但我没有明白这有什么问题。

选择 Id、Contact.FirstName、Contact.LastName、Contact.Title、Contact.Department、Contact.Birthdate、Contact.Phone、Contact.HomePhone、Contact.MobilePhone、Contact.OtherPhone、Contact.Fax、Contact.Email、Contact.MailingStreet , Contact.MailingCity,Contact.MailingState,Contact.MailingCountry,Contact.MailingPostalCode,Contact.OtherStreet,Contact.OtherCity,Contact.OtherState,Contact.OtherCountry,Contact.OtherPostalCode,Contact.Description,Contact.Account.Name 来自联系人哪里 strcmp ('%@',Id) = -1",lastcontactId

4

1 回答 1

0

您需要生成一个使用 = 的查询,例如

select name from contact where id='005123123123123123'

因此,您可以使用它来生成查询。

NSString *query = [NSString stringWithFormat:@"select name,etc from contact where id='%@'", lastContactId];

这是具有更多示例的SOQL 文档。

如果您尝试进行分页,您应该只运行整个查询并使用 query/queryMore 对结果进行分页。

于 2010-12-07T16:20:11.047 回答