slect c.字段,d.字段 from (select a.字段,b.字段 from A表 left join b表 on a.id=b.id) as c left join c.id=d.id 先把2个表进行关联 在跟第3个表关联