That will set the default in python, not in sql. If it really needs to be in the create table statements, use PassiveDefault: http://www.sqlalchemy.org/docs/04/metadata.html#metadata_defaults_passive
On Sun, Mar 30, 2008 at 2:30 PM, Andreas Jung <[EMAIL PROTECTED]> wrote: > > > --On 31. März 2008 01:25:48 +0800 "张沈鹏(电子科大 > > 毕/就业倒计时...)" <[EMAIL PROTECTED]> wrote: > > > I just mean default value in the create table's sql . > > > > such as > > CREATE TABLE xxx > > ( > > id INTEGER NOT NULL, > > value INTEGER default 0 > > ) > > > > > > Table(..., default=xxx) > > -aj --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
