MySQL的幾種join

內鏈接 inner join 獲得的是兩個表中的相同部分 select * from tableA a inner join tableB b on a.id=b.id; 左鏈接 left join 獲得的是以左表爲主的包括右表一些相同部分的結果 select * from tableA a left join tableB b on a.id=b.id; 右鏈接 right join 獲得的是以
相關文章
相關標籤/搜索