- 博客(1)
- 资源 (6)
- 问答 (1)
- 收藏
- 关注
原创 START WITH CONNECT BY PRIOR子句实现递归查询,主要用于查询数据中的树型结构关系[父子关系]
假设数据库中有表名table_1而table_1中有两列num1,num2。num1是num2的父亲节点。 1.自底向上查找父子关系: select num1,num2,level from table_1 start with num2=1008 connect by num2=prior num1 order by level desc;
2015-12-10 14:43:20 1022
Apache-cxf 3.0.3
2016-03-10
TA创建的收藏夹 TA关注的收藏夹
TA关注的人