Suppose I wish to do something like:
>> Session.query(Files.original_name, MSPResponse.*
>> because MSPResponse table has so many fields, and I want to get them
>> all. How do I do this given that I am also picking field(s) from other
>> tables ? Thanks RVince
>>
>
>
Session.query(Files.original_name, MSPResponse) should work. You get result
rows with 2 items: a scalar for original_name and a MSPResponse object.
You can then process the result like this:
for row in result:
### access Files.original_name as row.original_name
### access MSPResponse as row[1]
--
Mike Conley
--
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.