标签:connect 树形结构 ora tar from oracl star parentId bsp
例如:
--向下遍历
select * from tablename START WITH id= ‘111‘ CONNECT BY PRIOR id=parentid
--不包含parentid
select * from tablename START WITH parentid= ‘111‘ CONNECT BY PRIOR id=parentid
--向上遍历
select * from tablename START WITH id= ‘111‘ CONNECT BY PRIOR parentid =id
--不包含parentid
select * from tablename START WITH parentid= ‘111‘ CONNECT BY PRIOR parentid =id
标签:connect 树形结构 ora tar from oracl star parentId bsp
原文地址:https://www.cnblogs.com/xtjatswc/p/13181852.html