从appengine数据存储中使用Group By提取记录 [英] Fetch records using Group By from appengine datastore
本文介绍了从appengine数据存储中使用Group By提取记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
result = db.GqlQuery(SELECT * FROM myDataMode COUNT(Employee)GROUP BY(Department)WHERE Salary> 110000)
我收到错误消息: p>
BadQueryError:解析错误:在符号计数处没有额外符号
任何人都可以帮助我。
解决方案
GQL不是SQL 。它没有 COUNT()
或 GROUP BY()
。有关详情,请参阅 GQL参考资料。
I am trying something like this:
result = db.GqlQuery("SELECT * FROM myDataMode COUNT(Employee) GROUP BY(Department) WHERE Salary > :1"10000)
And I am getting error :
BadQueryError: Parse Error: Expected no additional symbols at symbol count
Can any one please help me.
解决方案
GQL isn't SQL. It doesn't have COUNT()
or GROUP BY()
. See the GQL reference for more information.
这篇关于从appengine数据存储中使用Group By提取记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文