On Dec 17, 2007, at 11:32 AM, Justin wrote:

>
> Using the Django ORM you can write:
>
> MyModel.objects.filter(property__in=['list', 'of', 'values'])
>
> ...and It will OR those values for you. Does SQLAlchemy have a similar
> shortcut?

table.c.somecol.in_([list of values])

MyClass.someattribute.in_([list of values])



--~--~---------~--~----~------------~-------~--~----~
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