Oracle 连接运算符 [英] Oracle join operator

查看:55
本文介绍了Oracle 连接运算符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何重写:

select tab1.id, tab2.id, tab3.id 
from tab1, tab2, tab3 
where tab1.col1 = tab2.col1(+) and tab2.col2 = tab3.col2(+);

使用 OUTER JOIN 语法?

using OUTER JOIN syntax?

推荐答案

select tab1.id, tab2.id, tab3.id 
from tab1
left outer join tab2 on tab1.col1 = tab2.col1
left outer join tab3 on tab2.col2 = tab3.col2;

这篇关于Oracle 连接运算符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆