注册
达梦数据库-错误码-[-4109]-分析处理
专栏/技术分享/ 文章详情 /

达梦数据库-错误码-[-4109]-分析处理

PYZ 2024/08/02 611 0 0
摘要

错误码:-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年第二季度本已支持这种写法

评论
后发表回复

作者

文章

阅读量

获赞

扫一扫
联系客服