You could order by _key_. However, as I recall key values are not guaranteed to be strictly increasing, only unique.

I do not think there is a way to use the key name or id to access a record in the viewer. But, if you know the encoded value you can using: _key_ = <encoded key>

Robert



On Mar 19, 2010, at 6:25, observer247 <[email protected]> wrote:

While using the datastore viewer, to find a particular record, I use a
gql query, for eg:

Select * from table where name  = 'myname'


or to sort it in descending order:

Select * from table ORDER BY score DESC

My question is how to I find a record with id = 22

Also how do I sort and find out the last added entry. (so I would sort
it by id in desc order).

Thanks for reading.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google- [email protected]. To unsubscribe from this group, send email to [email protected] . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en .


--
You received this message because you are subscribed to the Google Groups "Google 
App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to