I am working with SQLAlchemy 0.4.5

I have this table definition:

table1_def = Table('mytablename', metadata, schema='myschemaname',
autoload=True)

Now I would like a view on this table such that I only load the
records where column1 = 0.

I would like to define my view something as

view_table1_def = Table('mytablename', metadata,
schema='myschemaname', autoload=True, where(column1 = 0))

How can I define the view for table1 to load only data for a certain
condition?

Thank you.
--~--~---------~--~----~------------~-------~--~----~
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