Hi Alexander,

You could make something like this:


sql =
select([association_table.c.right_id,
func.count(association_table.c.right_id)]).group_by(association_table.c.right_id)

Session.execute(sql).fetchall()



-- 
Hans Roman

--

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


Reply via email to