错误码:-4109
错误内容:相关(+)表达式仅支持外表为基表
子查询写法导致报错"相关(+)表达式仅支持外表为基表"
select a.name,(select name
from t2 b
where b.id(+)=a.id
and b.id(+)=c.id
) as bname
from (select id,name from t1) a, --此处a表的子查询写法导致sql出现报错:-4109: 相关(+)表达式仅支持外表为基表
t3 c
where a.id=c.id;
方案1:由于标量子查询可以等价改写为left join,因此标量中的"(+)"实际可以去掉,或直接改写为left join
方案2:2023年第二季度本已支持这种写法
文章
阅读量
获赞