我想在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" ... "=" ... "<" ... "<=" ... ">" ... ">=" ... "." ... "(" .
如何进行正确的查询?
答案 0 :(得分:0)
你不能。 Google数据存储区和GQL既不支持pw.IsBackground = true;
查询,也不支持子查询。
有GQL语法供参考:https://cloud.google.com/datastore/docs/apis/gql/gql_reference#grammar