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

StackOverflow https://stackoverflow.com/questions/2660057

  •  27-09-2019
  •  | 
  •  

문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top