玉祥平台客服-15087858732

标题: 解决报错ora-32035的方法分析 [打印本页]

作者: fteair    时间: 2020-2-16 17:54

作者: 张兴康    时间: 2020-6-4 13:35
标题: 解决报错ora-32035的方法分析
报错ora-32035
如果定义了with子句,而在查询中不使用,那么会报ora-32035 错误:未引用在with子句中定义的查询名。(至少一个with查询的name未被引用,解决方法是移除未被引用的with查询),注意:只要后面有引用的就可以,不一定非要在主查询中引用,比如后面的with查询也引用了,也是可以的。
例子:
with q1 as (select 0+1 num1 from dual),q2 as (select 1+1 num2 from dual),q3 as (select 2+1 num3 from dual)
select * from q1
union
select * from q3
union
select * from q2;

定义了q1,q2,q3,后面就一定要引用,不一定在主查询中。


作者: 张兴康    时间: 2020-6-4 13:35

作者: 陈晓龙    时间: 2020-6-4 17:45

作者: 陈晓龙    时间: 2020-6-4 17:46

作者: 陈晓龙    时间: 2020-6-4 17:46

作者: 张兴康    时间: 2020-6-5 15:15





欢迎光临 玉祥平台客服-15087858732 (http://bbs.delit.cn/) Powered by Discuz! X3.2