views:

383

answers:

2

I want a "group by and count" command in sqlalchemy. How can I do this?

+1  A: 
session.query(TABLENAME).group_by(TABLENAME.colum).count()
dalloliogm