在 iOS 上使用 SUPQuery 对查询进行排序
我知道有一种方法可以定义我们想要查询中的内容的顺序,但尽管我知道它,但我无法使用它。在我的示例中,我有以下内容:
SUPQuery *query=[SUPQuery getInstance];
[query select:@"s.fname, s.lname"];
[query from:@"Sales_order" :@"s"];
[query orderBy:@"s.lname" : 0];
orderBy 的输入参数是:
[query orderBy:(SUPString*) :(SUPInt)];
我不知道对这两个字段还可以尝试什么,有人有一些线索吗?谢谢。
PS:你知道我在哪里可以找到资源中心/博客等,在那里我可以看到一些实现的示例。
I know there is a way to define the order we want things in a query, but although I know it, I am not able to use it. In my example I have the following:
SUPQuery *query=[SUPQuery getInstance];
[query select:@"s.fname, s.lname"];
[query from:@"Sales_order" :@"s"];
[query orderBy:@"s.lname" : 0];
The input paramenters for the orderBy are:
[query orderBy:(SUPString*) :(SUPInt)];
I don't know what else to try for those two fields, does anyone has some clue? Thanks.
P.S: Do you know where I could find a resource center/blog, etc where I could see some examples implemented.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能够弄清楚:
I was able to figure it out: