标签: sql sqlalchemy inner-query
假设我有两张桌子:
我希望通过sqlalchemy执行以下查询:
select ticket.id, user.name from ( select * from ticket where ticket.date >= '2015-05-18' ) as ticket left join user on ticket.user_id=user.id
我不太确定如何通过sqlalchemy执行内部查询。有什么想法吗?