Re: [SQLObject] groupBy with two fields
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ma...> - 2006-07-25 16:17:19
|
On Sat, Jul 01, 2006 at 10:03:06PM +0100, Matthias Teege wrote: > > Now I need to group by multiple fields. Is that possible? You can try psl = con.sqlrepr(Select((Study.q.name), groupBy=[Study.q.name, Study.q.more])) but I am afraid sqlbuilder cannot handle this. May be psl = con.sqlrepr(Select((Study.q.name), groupBy="name, more")) ? Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |