您的位置:首页 > 其它

递归应用(best)

2016-05-19 17:39 260 查看
--单表递归
select * from (select t.*,level as e from student t
start with id=1
connect by nocycle prior id=pid
) where e=3;
select t.*,level as e from student t
start with id=3
connect by nocycle prior pid=id;--向下查
select t.*,level as e from student t
start with id=3
connect by nocycle prior id=pid;--向上查
--http://maping.iteye.com/blog/327687 多表递归查询
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: