English 中文(简体)
附录 Query Parse Error: Using DISTINCT
原标题:ANCESTOR Query Parse Error: Using DISTINCT

Not this question (where the problem is using ANCESTOR = instead of ANCESTOR IS)

I used ANCESTOR IS properly:

SELECT DISTINCT batch_no 
FROM Entry 
WHERE ANCESTOR IS KEY( ag1kZXZ-dHRiLXRhbWVychkLEgdCcmV3ZXJ5IgxCUi1USEVSRURQRUEM )

But I still got an error:

鉴定人是一个保留的关键词,文号是附录

a screenshot of Google interactive GQL console followed by the error "鉴定人是一个保留的关键词,文号是附录"

为什么如此?

http://www.ohchr.org。

在我试图从<代码>db更新到<代码>nd的年份之后,我会发现同一错误。

鉴定人是一个保留的关键词,文号为附录

但在这种情况下,我的询问并不使用<代码>。 DISTINCT

SELECT *
FROM Balance
WHERE ANCESTOR IS KEY( ... )
AND first_balance_ever = TRUE
ORDER BY created_date

因此,我不敢确定这里的问题,可能的话说,它有<条码>、<<>> >有关,或许有<条码>。

最佳回答

在这种情况下,造成了这一问题。 移除,按预期处理。

我认为,问题只是暗含地预测了以下财产:/code>,因此,你不能进入<代码>的关键/历史。 页: 1 (如果你使用<条码>,即为: SlectT *?

但错误的信息并不明确......

谷歌称,是实验性的。 在db.Query文件:

Grouping(experimental)

预测性查询可使用<代码>单独<>代码/代码>关键词,以确保只有完全独特的结果才能在设定的结果中恢复。 这只能回头一次给那些对所预测的财产具有相同价值的实体

GQL 文件

任择的<代码>DISTINCT(experimental)条款具体规定,只有完全独特的结果才能在设定的结果中恢复。 这只能归还,这是对正在预测的财产具有相同价值的实体的第一个结果。

问题回答

暂无回答




相关问题
How to make logging.debug work on Appengine?

I m having a tough time getting the logging on Appengine working. the statement import logging is flagged as an unrecognized import in my PyDev Appengine project. I suspected that this was just an ...

gqlQuery returns object, want list of keys

Is there a way to convert the GqlQuery object to an array of keys, or is there a way to force the query to return an array of keys? For example: items = db.GqlQuery("SELECT __key__ FROM Items") ...

Integrating Google AppEngine with a Thick Client

I want to make a multi-user client-server solution with Java Swing thick client as a front-end and Google AppEngine (Java one) as a back-end. The problem is that GAE provides only web-based forms for ...

sorl.thumbnail : thumbnail is not a valid tag library?

I am trying to install sorl.thumbnail but am getting the following error message: thumbnail is not a valid tag library: Could not load template library from django.templatetags.thumbnail, No module ...