sqlalchemy统计记录条数
from sqlalchemy import funcfrom sqlalchemy import distinct# count distinct project by project.name# using a subquerydb.session.query(sqlalchemy.func.count(distinct(Project.name))).scalar()# usi...