oracle 左右连接 外连接

oracle 左右连接 外连接

1左连接 slect a.a,b.b  from table a left join table b  on a.c=b.d where a.m='123'
  显示左边(table a left )全部的和右边与左边相同的
  符号表示:b.d(+) = a.c

2右连接 slect a.a,b.b  from table b right join table b  on a.c=b.d where a.m='123'
  显示右边(table b right )全部的和左边与右边相同的
               b.d = a.c(+)

3 内连接  普通的连接 slect a.a , b.b from table a , table b where a.a = b. b

4 全外连接 两个表全部显示  slect a.a , b.b from table a , outer join table b on a.a = b.b 
  显示把所有的左连接 和 右连接的并集
   (+)不能用于实现完全外连接

你可能感兴趣的:(oracle 左右连接 外连接)