On Thu, Jan 8, 2015 at 9:57 AM, Rimma Rosenberg <rimm...@gmail.com> wrote:

> Could you please tell me what I am doing wrong. I am trying to run GQL
> queries from Google App Engine site from Datastore Viewer.
> 1. I tried with '6192449487634432',  6192449487634432L,
> '6192449487634432L'
>
> SELECT * FROM Docprod where __key__ = KEY('Docprod', 6192449487634432)
>
> 2. Docprod is a child of 'mrwdocbkup', so I tried also without any success:
>
> SELECT * FROM Docprod where _key_ = KEY('mrwdocbkup', 4922171302346752,
> 'Docprod', 6192449487634432 )
>


Can you confirm that you're using two underscores before and after the
*key* limiter,
instead of just one? I.e. *__key__ *instead of *_key_*. From your example
above, the first select command properly uses two underscores, but the
second select command uses only 1 underscore before and after. If it still
doesn't work, can you screenshot the error screen that pops up?

If you can't get the GQL query to work, try using the Datastore Query page
in the new cloud console. Go to cloud.google.com/console, click on your
project, then navigate through Storage > Cloud Datastore > Query on the
navigation bar. You'll see a page that looks like this:
http://imgur.com/KKZWaFn . That interface is a bit easier to use to find a
particular entity.



-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to