Hello,
I am using turbogears with sqlalchemy and assign_mapper.
How do I select one column only when doing a select statement?

d=model.Useraddress()

How do I do: "select Address_Sid from Useraddress where User_Sid='30' "

This
 d.select_by(USER_SID=30)
will do
select * from Useraddress where User_Sid='30'

How do I get Address_Sid columns only?
Lucas

http://lucasmanual.com/mywiki/TurboGears#head-69d50afbd4ced8ca65202cd8367774fe8e4004cc

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to