Re: [appengine-java] datastore viewer's GQL

2010-10-28 Thread pman
thx - it work.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] datastore viewer's GQL

2010-10-28 Thread Ikai Lan (Google)
I'm guessing this is a custom rolled User object. Here's how you'd likely do
it:

SELECT * FROM User where __key__=KEY('User', 100100)

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Wed, Oct 27, 2010 at 6:58 PM, pman  wrote:

> i have following record in the datastore.
>
> datastore ABC
> ===
> ID/Name title   message user
> ===
>
> and the user is the object.
>
>
> how to run GQL to filter a particular user's record - user
> (ag1udW1iZXJzaaD9wejAxcgsLEgRVc2VyGOkHKK
> User: id=100100)
>
> ??
>
> select * from ABC where user = User(100100) (not working).
>
>
> any help?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] datastore viewer's GQL

2010-10-27 Thread pman
i have following record in the datastore.

datastore ABC
===
ID/Name title   message user
===

and the user is the object.


how to run GQL to filter a particular user's record - user
(ag1udW1iZXJzaaD9wejAxcgsLEgRVc2VyGOkHKK
User: id=100100)

??

select * from ABC where user = User(100100) (not working).


any help?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.