SQL> select * from test3; ID PID
---------- ----------
2 1
3 2
4 3
6 3
7 4
9 4
10 6
11 4
8 5
5 3已选择10行。SQL> select id,pid from test3
2 start with id=8 connect by prior pid=id; ID PID
---------- ----------
8 5
5 3
3 2
2 1
---------- ----------
2 1
3 2
4 3
6 3
7 4
9 4
10 6
11 4
8 5
5 3已选择10行。SQL> select id,pid from test3
2 start with id=8 connect by prior pid=id; ID PID
---------- ----------
8 5
5 3
3 2
2 1
解决方案 »
- pl/sql developer test window 调试匿名块时出现no debug information 怎么解决?
- Sql Plus 问题,请教!!!
- 关于视图的问题
- oracle8i中关于制自定义聚合函数的问题
- Oracle中存照片用什么格式好?
- 请问哪有oracle下载?
- 求教:oracle9i安装后,为何management 服务找不到,请问什么原因?
- 菜鸟的问题:为什么用SQL*PLUS编辑插入命令插入的记录在DBA STUDIO的表中显示不出来
- 两个不同的SQL语句在Oracle中怎么同时执行
- command window 不能执行
- 大侠们:这句怎么转换为ORACLE中啊?if @@Error = 0 在线等啊!
- 在触发器中创建表问题!
start with parentid is null connect by prior fileid=parentid order by level;
start with parentid is null connect by prior fileid=parentid order by level;
----- 这个可以
不可,在hibernate 里,要用HQL,HQL有它独特的语言形式