在Stackoverflow上看到一個問答,問MySQL中表格關聯運算的操做與區別,回答用一張圖,一目瞭然。
ide
Presentation連接(包括詳細事例):spa
http://www.codeproject.com/Articles/33052/Visual-Representation-of-SQL-Joinscode
更正一下:blog
發如今MySQL中沒有FULL OUTER JOIN的操做,須要經過其餘方式模擬運算,好比:ci
SELECT * FROM t1
get
LEFT JOIN t2 ON t1.id = t2.id
it
UNION
io
SELECT * FROM t1
console
RIGHT JOIN t2 ON t1.id = t2.id
class