立即学习:https://edu.youkuaiyun.com/course/play/27328/362530?utm_source=blogtoedu
1. 表链接(join)
在多个表之间通过一定的额链接条件,使表之间发生关联,今儿能从多个表之间获取数据
select table1.column,table2.column from table1,table2 where table1.column1=table2.column2
1)内链接:join或者inner join,链接交集
2)外链接:左外链接,left join,链接左侧和交集;右外链接,right join 链接右侧和交集;全外链接,full join 链接全集
3)自链接:同一张表内的链接