left join、right join和inner join区别

left join(左连接) 返回包括左表中的所有记录和右表中联结字段相等的记录 right join(右连接) 返回包括右表中的所有记录和左表中联结字段相等的记录 inner join(等值连接) 只返回两个表中联结字段相等的行 实例 A表(Order) B表(Customer) select * from order as o left join customer as c on o.cust
相关文章
相关标签/搜索