>From: [email protected] [mailto:[EMAIL PROTECTED]
>On Behalf Of Loic
>
>i would like to use view in my database since i feel very comfortable
>with them and can tweak them really like i want.
>
>How can i make select query from my database views ?
That's a two-liner and you get the results as list (rows) of tuples (columns).
I assume you use SQLObject:
connection = MyModel._connection
result = connection.queryAll('SELECT xy FROM my_sql_view_or_table')
-- Mark
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---