0
点赞
收藏
分享

微信扫一扫

7种join连接查询

窗外路过了谁 2022-05-23 阅读 95

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 条评论