mysql两表联查概念

转载:https://blog.csdn.net/yxStory/article/details/83342556

left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录 

right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录

inner join(等值连接) 只返回两个表中联结字段相等的行

假设有两张表

 

 

 

posted on 2020-09-27 20:07  该用户很懒  阅读(551)  评论(0编辑  收藏  举报