SimpleDB 选择计数 (*) iPhone 不一致
有人知道为什么这两个 AWS SimpleDB 表达式都有效吗?
selectRequestClassVariable.selectRequestExpressionString = [NSString stringWithFormat:@"select count(*) from %@",DomainName];
此外,第二个表达式可以工作,但在域周围有“”。根据 AWS 的说法,只有第一个应该有效。
selectRequestClassVariable.selectRequestExpressionString = [NSString stringWithFormat:@"select * from `%@` where Attribute > '%ld' limit 2500",DomainName,number];
一个是选择,另一个是选择计数(*)。有人遇到过这种不一致并且知道如何处理吗?需要明确的是,这两种表达方式都有效。根据 AWS 的说法,只有第一个应该。
我问这个问题是因为我需要一个返回超过 2500 的 select 计数 (*)。我读到 select 最多只返回 2500。
谢谢!
Anyone know why both AWS SimpleDB expressions work?
selectRequestClassVariable.selectRequestExpressionString = [NSString stringWithFormat:@"select count(*) from %@",DomainName];
In addition, this second expression works, but has '' around the domain. According to AWS, only the first should work.
selectRequestClassVariable.selectRequestExpressionString = [NSString stringWithFormat:@"select * from `%@` where Attribute > '%ld' limit 2500",DomainName,number];
One is a select, the other is a select count(*). Anyone run into this inconsistency and know how to deal with it? Just to be clear, both expressions shown work. According to AWS only the first should.
I ask because I need a select count (*) that returns more than 2500. I've read that select only returns a max of 2500.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正确答案是
%@
而不是 '%@'correct answer is
%@
not '%@'