oracle 递归查询(来源于网络)

比如

a   b
a   c  
a   e
b   b1
b   b2
c   c1
e   e1
e   e3
d   d1

指定parent=a,选出
a   b
a   c  
a   e
b   b1
b   b2
c   c1
e   e1
e   e3
select   parent,child   from   test   start   with   parent= 'a '
connect   by   prior   child=parent

原文地址:https://www.cnblogs.com/wenwu/p/3352890.html