Re: [SQL ] Oracle sql 的(+) 涵義?
此為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
推
12/02 00:36, , 1F
12/02 00:36, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):