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

posted @ 2013-10-05 21:36  一点味  阅读(356)  评论(2编辑  收藏  举报