On Thu, Aug 19, 2010 at 10:58, chaouche yacine <[email protected]> wrote:
> Hello list,
>
> What is the best way to select a subset of my model's columns ?
>
> Model.query. ... ?

Model.query is only a shortcut for: session.query(Model), so you can't
use it in that case, but:

session.query(Model.col1, Model.col2, ...)

should do what you want.

-- 
Gaƫtan de Menten

-- 
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en.

Reply via email to