当前位置:Gxlcms > 数据库问题 > oracle树形结构遍历

oracle树形结构遍历

时间:2021-07-01 10:21:17 帮助过:2人阅读

--从Root往树末梢递归
select level ,identity,pid from table_name
  start with identity=475
  connect by prior identity = pid


--从末梢往树ROOT递归
select level ,identity,pid,yylevel from table_name
  start with identity=542
  connect by prior pid = identity

oracle树形结构遍历

标签:

人气教程排行