作者ttnan (mik)
看板Database
标题Re: [SQL ] Oracle sql 的(+) 涵义?
时间Sat Nov 26 13:54:01 2011
此为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
1F:推 iamnotfat:谢谢您的解说~ 很受用 12/02 00:36