Oracle 递归查询
2010-04-09 14:58
225 查看
create table tree_table
(
id number,
pId number,
orderNumber number,
name varchar2(255)
)
select tt.*
from tree_table tt
start with tt.pId = 0
connect by prior tt.id = ttd.pId
order siblings by orderNumber
(
id number,
pId number,
orderNumber number,
name varchar2(255)
)
select tt.*
from tree_table tt
start with tt.pId = 0
connect by prior tt.id = ttd.pId
order siblings by orderNumber
相关文章推荐
- oracle递归查询
- ORACLE 递归查询(转)
- oracle 递归查询学习
- 在oracle中通过connect by prior来实现递归查询!
- oracle 使用 START WITH…CONNECT BY PRIOR 实现递归查询
- Oracle 递归查询详解
- 对于oracle进行简单树查询(递归查询)
- Oracle Connect By Prior用法(实现递归查询)
- oracle递归查询(简单树查询)
- oracle 递归查询属于本部门以及下属部门
- oracle递归查询
- 对于oracle进行简单树查询(递归查询)
- Oracle 树操作、递归查询(select…start with…connect by…prior)
- Oracle start with...connect by prior子句实现递归查询
- oracle 中递归查询语句
- Oracle 递归查询
- 在oracle中通过connect by prior来实现递归查询!
- ORACLE 递归查询实现
- oracle 递归查询例子
- Oracle递归查询