tags:

views:

45

answers:

1

using SQLAlchemy 0.5.8 how do you run a max query?

i.e. Select max(id) from some_table

A: 
from sqlalchemy import func 

session.query(func.max(Table.column)) 
John