--递归获取所有子节点
with temp as
(
select * from MK_Base_Department where F_DepartmentId='5f258320-c1b7-42a4-b2fe-cafbd7a190ba'
union all
select a.* from MK_Base_Department a,temp b where a.F_ParentId=b.F_DepartmentId
)
select * from temp

 

相关文章:

  • 2021-08-17
  • 2021-10-26
  • 2021-08-01
  • 2022-12-23
  • 2021-07-29
  • 2022-01-22
  • 2021-05-31
猜你喜欢
  • 2021-10-28
  • 2022-02-28
  • 2021-11-23
  • 2021-08-05
  • 2021-07-18
相关资源
相似解决方案