mysql不支持全連接,但可以通過左外連接+ union+右外連接實現 ...
mysql不支持全連接,但可以通過左外連接+ union+右外連接實現
SELECT * FROM t1
LEFT JOIN t2 ON t1.id = t2.id
UNION
SELECT * FROM t1
RIGHT JOIN t2 ON t1.id = t2.id
mysql不支持全連接,但可以通過左外連接+ union+右外連接實現 ...
SELECT * FROM t1
LEFT JOIN t2 ON t1.id = t2.id
UNION
SELECT * FROM t1
RIGHT JOIN t2 ON t1.id = t2.id