📜  sqlalchemy 查询连接多对多 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:19.739000             🧑  作者: Mango

代码示例1
session.query(User).join((Group, User.groups)) \
    .join((Department, Group.departments)).filter(Department.name == 'R&D')