GQL aiuto interrogazione - Come posso scrivere una query con clausola where in GQL? Sto usando Google AppEngine datastore

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

  •  27-09-2019
  •  | 
  •  

Domanda

Ho tre record in una tabella Esempio:

*Usernames*        *email*                *city*
Nick            nick@example.com        London
Vikky           vicky@example.com       Paris
Lisa            lisa@example.com        Sydney

Ora voglio ottenere record specifico tenuta email ID come chiave,

SQL query può essere simile a questo

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

Qual è la query GQL equivalente per quanto sopra ??

È stato utile?

Soluzione

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

dovrebbe funzionare bene in GQL.

Vedi qui per maggiori informazioni http://code.google.com/appengine/docs/python/ gettingstarted / usingdatastore.html

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top