sql递归查询所有子集

select * from bg_organization


sql递归查询所有子集
 

with a as(
select * from bg_organization where orgid=1
union all
select x.* from bg_organization x,a
where x.pid=a.orgid)
select * from a


sql递归查询所有子集
 


相关文章:

  • 2021-12-19
  • 2021-12-13
  • 2022-12-23
  • 2021-09-03
  • 2021-08-03
  • 2021-12-19
  • 2021-12-26
猜你喜欢
  • 2021-09-26
  • 2021-06-09
  • 2022-02-05
  • 2021-09-16
  • 2021-07-19
相关资源
相似解决方案