GQL query help - How can I write a query with wher

2019-07-17 05:30发布

I have three records in a table example:

*Usernames*        *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 ??

1条回答
Luminary・发光体
2楼-- · 2019-07-17 06:23
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

查看更多
登录 后发表回答