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
顯示把所有的左連接 和 右連接的并集
(+)不能用于實現完全外連接

posted on 2012-04-25 15:49 youngturk 閱讀(943) 評論(2) 編輯 收藏 所屬分類: Oracle