P
pizilai
Unregistered / Unconfirmed
GUEST, unregistred user!
用ODAC 执行下面的SQL出现 "ORA-01436: CONNECT BY loop in user data"的错误啊 ( 积分: 100 )<br />用ODAC 执行下面的SQL出现 "ORA-01436: CONNECT BY loop in user data"的错误啊。<br>但是在另外的ORACLE的工具或者是ADO是不会报错的。<br>SQL:<br>SELECT AID,ANAME,PARENT_ID,LEVEL FROM ( SELECT DISTINCT TO_CHAR(ITEM_ID) AID ,TRIM(ITEM_NAME) ANAME, TO_CHAR(PARENT_ITEM_ID) PARENT_ID FROM RPT_ITEM WHERE ITEM_ID NOT IN (SELECT DISTINCT ITEM_ID FROM RPT_REPORT_ITEM WHERE REPORT_ID=1004   CONNECT BY PRIOR AID=PARENT_ID START WITH LEVEL = 1<br><br>请大家帮帮,谢谢