1、自顶向下查找
      select t.name, t.id
  from tree t
 start with t.id = 'top'
CONNECT BY PRIOR t.id = t.parent_id
 order SIBLINGS by t.order_no
2、自底向上查找
select t.name, t.id
  from tree t
 start with t.id = 'top'
CONNECT BY PRIOR t.parent_id = t.id
 order SIBLINGS by t.order_no

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2021-12-09
  • 2022-12-23
  • 2021-11-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2021-09-21
  • 2022-12-23
  • 2022-01-08
相关资源
相似解决方案