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
原文地址:https://www.cnblogs.com/daiwei1981/p/9094658.html
时间: 2024-11-04 04:03:37