开发者

How to search in the GQL Viewer in appengine dashboard by key?

How to search in the GQL Viewer in appengine开发者_C百科 dashboard by key?

I use this and it gives an error:

SELECT * FROM Cache where __key__ = KEY('Cache', 'ag9wYWdhbGd1eS1zdGF0aWNyHAsSBUNhY2hlIhEvYnV0dG9ucy9lZGl0LmdpZgw ')


You're passing in what looks like an encoded key as a key name. Try "KEY('ag9wYWdhbGd1eS1zdGF0aWNyHAsSBUNhY2hlIhEvYnV0dG9ucy9lZGl0LmdpZgw')" instead.


It seems to be important to use single quotes. This seems to work:

SELECT * FROM Cache where __key__ = KEY('ag9wYWdhbGd1eS1zdGF0aWNyHAsSBUNhY2hlIhEvYnV0dG9ucy9lZGl0LmdpZgw ')
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜