[DB-SIG] how do I execute a query likte 'select * from mytable where id in (1, 2, 3)'?

Joerg Beyer j.beyer at web.de
Fri Dec 28 15:44:10 CET 2007


Hello,

maybe this is obvious, but I don't know how to execute a query like:
select * from mytable where id in (1,2,3)
from python. The difficult part is the set in the where clause, the "in
(a,b,c,d, ...)"

Any suggestions?


    thanks in advance
    Joerg


More information about the DB-SIG mailing list