1
1楼 wyplay 2007-06-06 10:20:59 表如下 preant child 1 101 1 102 1 103 101 10101 101 10102 102 10201 103 10301 10101 1010101 查询preant为1的所有child 1 101 1 102 1 103 1 10101 1 10102 1 10201 1 1010101 1 10301 1 1 怎么用connet by实现? 2楼 HelloWorld_001 2007-06-06 10:25:35 select * from table start with preant= '1 ' connect by prior child=preant 3楼 wyplay 2007-06-06 10:34:46 这样查询只能出来 parent child 1 101 1 102 1 103 4楼 HelloWorld_001 2007-06-06 14:17:34 才注意你的表结构,没有child的值,那你怎么确定preant为1的所有child的? 表如下 preant child 1101 1102 1103 10110101 10110102 10210201 10310301 101011010101 5楼 wyplay 2007-06-06 14:35:49 拿preant1为例 1的child有101,102,103 101的child有10101,10102 10101的child有1010101 关系就出来了 1的下级包括 101,102,103,10101,10102,1010101 6楼 murfy_mf 2007-06-06 14:50:46 加入ORACLE的群吧;群号是:19312711
搜索墙@2009 www.pkwall.com all rights reserved QQ:276471788 [京ICP备09111534号]
声明:本站部分数据来源于网络,仅供参考,如有版权问题,请联系我们,我们将及时删除!转载本站请注明来源
| |||||