推 iamnotfat:謝謝您的解說~ 很受用 12/02 00:36
此為oracle outer join
用法為當查詢的資料在table1有
但在table2沒有
也得顯示出來
-->
1.table1.A=table2.A必須查出來
2.在table1有,但在table2沒有對應的table1資料...也得查出來
Ex;
table1 A B
1 1
2 5
table2 A B
1 1
3 4
select table1.A , table2.B from table1 , table2 where table1.A=table2.A
==> 1, 1
select table1.A , table2.B from table1 , table2 where table1.A=table2.A(+)
==> 1, 1
2,
※ 引述《iamnotfat (我不肥)》之銘言:
: SQL:
: select table1.A , table2.B from table1 , table2 where table1.A=table2.A(+);
: 請問有無版友知道 (+) 代表的意思?
: Google 上面搜尋這類特殊字元是找不到的...Orz...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 180.176.99.76