what is the GQL count query

落爺英雄遲暮 提交于 2019-12-11 16:42:18

问题


In the interest of time, I do mean GQL, as in

SELECT * FROM Song WHERE composer = 'Lennon, John'

The following failed

SELECT COUNT(*) FROM myEntity

also the following

SELECT COUNT() FROM myEntity

回答1:


As shown here, there is actually a way to count the return of your GQL. The doc about the GQL language shows you can't really do a count on the query itself. So what you would do is take your select *, put it in a GQL query object, then call the "count()" method on that object to have the count



来源:https://stackoverflow.com/questions/27177513/what-is-the-gql-count-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!