In MySQL it's like:
select * from table1 where column1 in ('a','b','c');
how to do that in GQL?
In MySQL it's like:
select * from table1 where column1 in ('a','b','c');
how to do that in GQL?
You can use one of the following
result = db.GqlQuery("Select __key__ from model where column in ('a','b','c')")
or
result = db.GqlQuery("Select * from model where column in ('a','b','c')")
The call with _ _ key _ _ is a lot more efficient than the * call on the appengine. It uses less datastore calls as well as less CPU to do it.
Just exactly as you described it works fine - but beware, IN queries are implemented in the Python API, and translate to multiple underlying datastore queries. If there's another way you can fetch the data, I'd highly recommend using that instead.