--On 27. Juni 2007 12:00:13 -0700 voltron <[EMAIL PROTECTED]> wrote:


I´m guessing a bit because I still could not find the group_by  entry
in the docs

This works:
user.select(links.c.id> 3, order_by=[user.c.id]).execute()

but this does not
user.select(links.c.id> 3,group_by=[user.c.dept]).execute()

What should be the right syntax?


Works for me:


for row in session.query(am).select(am.c.hidx=='HI1561203', group_by=[am.c.hidx]):
   print row.hidx, row.versionsnr

-aj

Attachment: pgpUJyI03GxCN.pgp
Description: PGP signature

Reply via email to