SQL> select * from test3;        ID        PID
---------- ----------
         2          1
         3          2
         4          3
         6          3
         7          4
         9          4
        10          6
        11          4
         8          5
         5          3已选择10行。SQL> select id,pid from test3
  2  start with id=8 connect by prior pid=id;        ID        PID
---------- ----------
         8          5
         5          3
         3          2
         2          1