开发者

GQL query help - How can I write a query with where clause in GQL ? I am using google appengine datastore

开发者 https://www.devze.com 2022-12-27 11:43 出处:网络
I have three records in a table example: *Usern开发者_开发技巧ames**email**city* Nicknick@example.comLondon

I have three records in a table example:

*Usern开发者_开发技巧ames*        *email*                *city*
Nick            nick@example.com        London
Vikky           vicky@example.com       Paris
Lisa            lisa@example.com        Sydney

Now I want to get specific record keeping email ID as a key ,

SQL query may be like this

select * from table1 where email = "vicky@example.com" 

What is the equivalent GQL query for the above ??


SELECT * FROM table1 WHERE email = 'vicky@example.com' 

should work fine in GQL.

See here for more information http://code.google.com/appengine/docs/python/gettingstarted/usingdatastore.html

0

精彩评论

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

关注公众号