如何在Google App Engine数据存储中使用NOT IN子句

时间:2016-04-06 06:49:39

标签: google-app-engine gql

我想在GAE的GQL中运行此查询。

select * from Content where masterContentTypeId not in (select id from MasterContentType)

此处在内置查询中," id"是整数类型,由GAE生成。
但它给出了错误GQL query error: Encountered "not" at line 1, column 49. Was expecting one of: "contains" ... "has" ... "is" ... "=" ... "<" ... "<=" ... ">" ... ">=" ... "." ... "(" .

如何进行正确的查询?

1 个答案:

答案 0 :(得分:0)

你不能。 Google数据存储区和GQL既不支持pw.IsBackground = true; 查询,也不支持子查询。

有GQL语法供参考:https://cloud.google.com/datastore/docs/apis/gql/gql_reference#grammar