I have also asked the question at http://stackoverflow.com/questions/30575111/how-to-create-a-new-table-from-select-statement-in-sqlalchemy
On Monday, 1 June 2015 19:09:13 UTC+5:30, Ranjith Ramachandra wrote: > > I am using sqlalchemy's core features do write some abstraction layer. The > layer itself needs to be able to create tables from select statements. > > Sample code: > > metadata = MetaData(bind=engine) > table = Table(table_name, metadata, autoload=True, > autoload_with=engine) > s = select(table).where(table.c.column_1 > 10) > > Now what I want to be able to is create a new table from the select > statement above. How can I do it? > > > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.
