递归应用(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 多表递归查询
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 多表递归查询
相关文章推荐
- MVC4.0网站发布和部署到IIS7.0上的方法
- opencv
- 百度工程效率部-实习研发工程师一、二面
- 【42】android Context深度剖析
- redis数据类型(五)有序集合类型
- 【42】android Context深度剖析
- 【42】android Context深度剖析
- 时间管理
- 多线程处理方式及优缺点
- mysql 查询获取排名的方法(绝对有效)
- Xamarin.ios引用第三方SDK
- 垃圾回收,引用类型和五种可达性-强、软、弱、虚、不可达
- 单模模块是什么样的?LH标准是什么?SM代表什么意思?GLC-LH-SM是什么意思?
- ImageMagick版本升级
- jquery修改css的两种方法
- 用Object-C 写一个冒泡排序
- LinkedList源码解析
- codeforces 200 div2 C. Rational Resistance 思路题
- 如何解决transfer error: Read-only file system
- 数据结构之排序