网上找了个例子 测试了一下 貌似明白了
create table t2(
root_id number,
id number,
name varchar(5),
description varchar(10)
);

insert into t2(root_id,id,name,description) values(0,1,'a','aaa');
insert into t2(root_id,id,name,description) values(1,2,'a1','aaa1');
insert into t2(root_id,id,name,description) values(1,3,'a2','aaa2');
insert into t2(root_id,id,name,description) values(0,4,'b','bbb');
insert into t2(root_id,id,name,description) values(4,5,'b1','bbb1');
insert into t2(root_id,id,name,description) values(4,6,'b2','bbb2');

select * from t2 start with root_id = 0 connect by prior id = root_id

select * from t2 start with id = 1 connect by prior id = root_id;

select * from t2 start with id = 4 connect by prior id = root_id;

select * from t2 start with root_id = 0 connect by id = root_id;

 
select * from t2 start with id = 1 connect by id = root_id;

 

最新文章

  1. Codeforces Round #363 (Div. 2)A-D
  2. Centos 6 安装 epel yum库
  3. eclipse不能识别虚拟机的问题
  4. java学习笔记 --- 面向对象3
  5. 在JS事件封装时,addEventListener()方法的this问题
  6. Java开发必须掌握的线上问题排查命令
  7. 织梦dede如何获取图集调用第一张图片完美解决方法【5.7sp2版本】
  8. Swagger2 添加HTTP head参数
  9. Spring AOP 配置通知方法的时候如何处理方法重载
  10. VisualSVN 手动记录访问操作日志
  11. 【Atcoder yahoo-procon2019-qual D】 Ears
  12. zabbix监控k8s出现的pod error status
  13. Eth-Trunk链路聚合配置
  14. C# string和byte[]的转换
  15. html lang属性
  16. 如何在 Ubuntu 和 CentOS 上启用 Nginx 的 HTTP/2 协议支持
  17. 如何在CentOS 7上使用vsftpd(FTP)的配置文件介绍
  18. MySQL------如何卸载与安装
  19. java-mybaits-00401-Mapper-输入输出
  20. Loadrunner 11检查点使用方法总结

热门文章

  1. 解决flash挡住层的问题
  2. sql 查询练习
  3. winForm 中子窗体关闭但不释放对象,方便下次继续打开
  4. C#定时器
  5. 解决DB2事物日志满、扩充表字段长度和表空间的命令
  6. YII框架源码分析(百度PHP大牛创作-原版-无广告无水印)
  7. 用JS写的放大镜
  8. 跟着PHP100第一季学写一个CMS(1-10)
  9. 深入理解jsavascript的作用域
  10. iOS 基础 第三天(0808)