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 @   一点味  阅读(356)  评论(2编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示