查找引发 ORA-01436: 用户数据中的 CONNECT BY 循环 错误的数据
Posted doubleo2water
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了查找引发 ORA-01436: 用户数据中的 CONNECT BY 循环 错误的数据相关的知识,希望对你有一定的参考价值。
declare cursor orList is select * from t_org; topOrgID number; begin for org in orgList loop begin select t.ORG_ID into topOrgID from t_ORG t where t.UP_ORG_ID = 0 start with t.ORG_ID = org.ORG_ID connect by prior t.UP_ORG_ID = t.ORG_ID exception when others then if SQLCODE = -1436 then dbms_out_put.put_line(‘错误信息:‘||SQLERRM || ‘;错误代码:‘||SQLCODE || ‘;错误机构:‘|| org.ORG_ID); end if; continue; end; end loop; end;
以上是关于查找引发 ORA-01436: 用户数据中的 CONNECT BY 循环 错误的数据的主要内容,如果未能解决你的问题,请参考以下文章
Connect By 子句适用于 11g,但不适用于 Oracle 8i:“ORA-01436:用户数据中的 CONNECT BY 循环”