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 ')
精彩评论