On Feb 11, 2008, at 6:36 AM, Glauco wrote:

>
> Hi all,
> What's the simplest way for do a simple:
>
> select * from myTable where id in (1,2,3);
>
>
>
> I've solved this by using  Subquery  but final qry isn't pretty as  
> this one.


mytable.select(mytable.c.id.in_([1,2,3]))



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

Reply via email to