-- 查找树的所有子节点


with cte as

(select Id,Pid,Name from dc_trees where pid=2
union all
select t.id,t.pid,t.Name from cte a,dc_trees t where t.pid=a.id)
select * from cte

 

相关文章:

  • 2022-03-02
  • 2021-06-09
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2021-11-01
  • 2021-08-03
  • 2021-07-02
  • 2021-12-19
  • 2021-09-17
  • 2021-12-29
相关资源
相似解决方案