from sqlalchemy import distinct q = session.query(distinct(User.name).label('uniq_username')) for r in q.all(): print(r). 上述SQL 語句為:
確定! 回上一頁