Ashish Bhatia wrote: > > :( Is it possible ! > > On Jun 23, 3:32 pm, Ash <[email protected]> wrote: >> Hello, >> >> I am tryin to make the dynamic where clause using append_whereclause. >> >> But how i can do that, For eg : >> >> I have a==b and c in (1,2,3,4) or d like %s >> >> So i made three sqlalchemy expression >> >> 1. a==b >> 2. c in (1,2,3,4) [ using in_] >> 3. d like %s [using like] >> >> now i want this 3 to stuff in where clause . >> >> I created select like sel = select() >> >> How can i make the where clause which have and and or both uisng >> append_whereclause.
construct using and_() and or_(), then use a single where() to set it. >> >> Thnks in advance > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
