Tidak ada FULL OUTER JOIN
di MySQL. Lihat 7.2.12. Penyederhanaan Gabung Luar
dan 12.2.8.1. GABUNG Sintaks
:
Anda dapat meniru
FULL OUTER JOIN
usingUNION (dari MySQL 4.0.0 aktif):dengan dua tabel t1, t2:
SELECT * FROM t1 LEFT JOIN t2 ON t1.id = t2.id UNION SELECT * FROM t1 RIGHT JOIN t2 ON t1.id = t2.id
dengan tiga tabel t1, t2, t3:
SELECT * FROM t1 LEFT JOIN t2 ON t1.id = t2.id LEFT JOIN t3 ON t2.id = t3.id UNION SELECT * FROM t1 RIGHT JOIN t2 ON t1.id = t2.id LEFT JOIN t3 ON t2.id = t3.id UNION SELECT * FROM t1 RIGHT JOIN t2 ON t1.id = t2.id RIGHT JOIN t3 ON t2.id = t3.id