在上一篇文章中
幸運的是
ORA
過去
CONNECT BY子句中增加的NOCYCLE參數指出
列表A是和上一篇文章中相同的層次化查詢
這次我們在數據中介紹另一個循環
UPDATE employees
SET manager_id =
WHERE employee_id =
COMMIT;
如果我們重新運行上述查詢
輸出結果在Urman行顯示
column
set pagesize
SELECT LPAD(
FROM employees
START WITH employee_id IN (
CONNECT BY PRIOR employee_id = manager_id
/
Reports To EMPLOYEE_ID
De Haan
Hunold
Austin
Ernst
Lorentz
Pataballa
Kochhar
Baer
Greenberg
Chen
Faviet
Popp
Sciarra
Urman
Kochhar
ERROR:
ORA
Bob Watkins(OCP
From:http://tw.wingwit.com/Article/program/Oracle/201311/18866.html