use key=... argument of Column
On Friday 23 January 2009 04:52:07 Ikuta wrote:
> And I got another question now.
> The Column name has space like below.
>
> user = Table('tbl_user', metadata,\
> Column('name', VARCHAR(20)),\
> Column('phone number', VARCHAR(20)))
>
> 1. when select
> user.c.get('phone number') =='12345678'))
> 2. when insert
> {user.c.get('phone number):''7890'}
>
>
> I should get phone number object in the ugly way. any function in
> sqlalcemy could alias column name as below?
>
> 1. when select
> user.c.name =='nick'
> 2. when insert
> name = 'lisa'
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---