我是PROC的新手,我正在编译.pc文件中的以下查询,
`
SELECT * FROM CUST
WHERE CUSTOMER_ID = :sqli_customer_id
START WITH SUBSCRIBER_NO = :sqli_subscriber_no
CONNECT BY NOCYCLE PRIOR PRV_CTN = SUBSCRIBER_NO
ORDER BY ROWNUM DESC
`
以下查询无法在PROC编译器中编译
但是当我从查询中删除 NOCYCLE
时,文件会成功编译。
我在NOCYCLE
时遇到以下错误:
PCC-S-02201, Encountered the symbol "PRIOR" when expecting one of the following:
= ( * < > + - / . @ ^= | != <= >= <> at, not, between, in, is, like, day, hour, minute, month, second, year,
The symbol "*" was substituted for "PRIOR" to continue.
`
任何建议都会有所帮助。
谢谢,
Nitin T。