oh, thank you very much.
On Sun, Jan 13, 2013 at 7:23 AM, Michael Bayer <mike...@zzzcomputing.com>wrote: > > On Jan 12, 2013, at 1:47 AM, limodou wrote: > > > I have a select just like : > > > > select([User, 0]) > > > > and I don't know how to label 0 as real sql statement like this: > > > > select User.*, 0 as age; > > > > How to do that with label? > > easy enough, literal(0).label('age') > > > -- > 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 > sqlalchemy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > > -- I like python! UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/ UliWeb <<simple web framework>>: https://github.com/limodou/uliweb My Blog: http://my.oschina.net/limodou -- 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 sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.