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 )全部的和右邊與左邊相同的
符號(hào)表示: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 內(nèi)連接 普通的連接 slect a.a , b.b from table a , table b where a.a = b. b
4 全外連接 兩個(gè)表全部顯示 slect a.a , b.b from table a ,outer join table b on a.a = b.b
顯示把所有的左連接 和 右連接的并集
(+)不能用于實(shí)現(xiàn)完全外連接

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