Mysql的七种join你真的都会了吗?
每个你难熬的夜晚,都有二哥陪着你
Don't be afraid to shoot a single horse. What about being alone and brave? You can cry all the way, but you can't be angry. You have to go through the days when nobody cares about it to welcome applause and flowers.
单枪匹马你别怕,一腔孤勇又如何,这一路你可以哭,但不能怂,总得熬过无人问津的日子,才能迎来掌声和鲜花。
mysql的七种查询join
左连接(left join)
右连接(right join)
内连接(inner join)
左独有连接(left join)
右独有连接(right join)
全连接(full join)
全连接去交集(full join)
员工表,通过 dept_id关联部门表
部门表
1、左连接(left join)
2、右连接(rigit join)
3、内连接(inner join)
4、左独有连接(left join)
5、右独有连接(right join)
6、全连接(full join)
7、全连接去交集(full join)
看到这里,mysql的七种join你学会了吗?
如果你从本文学习到了一些的话,就不要白嫖啦,给作者点个赞,点个在看,谢谢啦~