7种join连接查询

阅读 95

2022-05-23

7种join连接查询_javascript

内链接--取共有部分

select <select_list>

from tableA a

inner join tableB b

on a.key =b.key



7种join连接查询_html_02

 ab共有加a的独有(全a)--左链接

select<select_list>

from tableA a

left join tableB b

on a.key=b.key 


7种join连接查询_html_03

b独有+ab共有(全b)


select<select_list>

from tableA a

right join tableB b

on a.key=b.key


7种join连接查询_javascript_04

select<select_list>

frin tableA a

left join tableB b

on a.key =b.key

where b.key is null


7种join连接查询_javascript_05

select<select_list>

from tableA a

right join tableB b

on a.key=b.key

where a.key is null


7种join连接查询_javascript_06



select<select_list>

from tableA a

full outer join tableB b

on a.key=b.key



7种join连接查询_javascript_07

select<select_list>

from tableA a

full outer join tableB b

on a.key=b.key

where a.key is null

or b.key is null




7种join连接查询_html_08





作者:三号小玩家




精彩评论(0)

0 0 举报