开发者

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

开发者 https://www.devze.com 2022-12-19 14:25 出处:网络
How to search in the GQL Viewer in appengine开发者_C百科 dashboard by key? I use this and it gives an error:

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

精彩评论

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