SQLAlchemy 0.5.8 Max function

I know this question is specifically about v0.5.8, but for anyone coming here from google 4 years later, func is now in sqlalchemy.sql.expression.

Example:

from sqlalchemy.sql.expression import func

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)