本文記錄幾種與SELECT DISTINCT 相同作用的SQLAlchemy 寫法。 ... from sqlalchemy import distinct session.query(func.count(distinct(User.name))) ...
確定! 回上一頁