sql之left join、right join、inner join的區別

轉載自:https://www.cnblogs.com/pcjim/articles/799302.htmlphp left join(左聯接) 返回包括左表中的全部記錄和右表中聯結字段相等的記錄 right join(右聯接) 返回包括右表中的全部記錄和左表中聯結字段相等的記錄 inner join(等值鏈接) 只返回兩個表中聯結字段相等的行 舉例以下: --------------------
相關文章
相關標籤/搜索