Chris Withers wrote:
> Michael Bayer wrote:
>>> Any serious ideas or should I just go sulk in the corner?
>>
>> you have to use IN, and you have to generate the SQL every time based on
>> the number of values you'd like to put into the IN.
>
> Does SA have any helper code anywhere for this?

we have the in_() construct.  It should be in the ORM and SQL expression
tutorials:

t1 = Table('mytable', metadata, Column('foo', String))

select([t1]).where(t1.c.foo.in_(['a', 'b', 'c']))


-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to