Sql Jions 的简易理解

Sql Jions 的简易理解

Select  * from TableA A  left jion TableB  B on  A.key = B.key

 

Select  * from TableA A  right jion TableB  B on  A.key = B.key

Select  * from TableA A inner jion TableB  B on  A.key = B.key

Select  * from TableA A left jion TableB  B on  A.key = B.key where B.key is NULL

Select  * from TableA A right jion TableB  B on  A.key = B.key where A.key is NULL

Select  * from TableA A full outer jion TableB  B on  A.key = B.key

Select  * from TableA A full outer jion TableB  B on  A.key = B.key  where A.key is NULL or B.key is NULL

posted on 2018-05-26 22:55  伪全栈的java工程师  阅读(499)  评论(0编辑  收藏  举报