Home > Database > Mysql Tutorial > 偶遇Oracle中SQL语句中的“(+)”

偶遇Oracle中SQL语句中的“(+)”

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:09:25
Original
1124 people have browsed it

偶遇Oracle中SQL语句中的quot;(+)quot;

之前居然从来没见到过此类写法,,诸如 

select * from t_spolicy d,V_POLICYEMPLOYEE g where d.policyno = g.policyno(+)

查阅相关资料才发现此法就是外联的另外一种表现形式其等同于

select * from t_spolicy d left join V_POLICYEMPLOYEE g on d.policyno = g.policyno,

同理 select * from t_spolicy d,V_POLICYEMPLOYEE g where d.policyno(+) = g.policyno,

就等同于select * from t_spolicy d right join V_POLICYEMPLOYEE g on d.policyno = g.policyno

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template