Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一张表说我们离开了表 A 与表 B 连接。这很好用。这里的问题是,基于表 A 和 B 的左连接,我们希望在表 B 和表 C 之间有另一个左连接,因为这些字段仅在这 2 个表中可用,那么构建此查询的最佳解决方案是什么?
您可以很容易地链接连接:
SELECT ... FROM a LEFT JOIN b on a.somefield=b.somefield LEFT JOIN c on b.otherfield=c.otherfield