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 [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.