MSSQL的递归查询
摘要:通过递归查询部门id为11的部门及其子孙部门 with dep as (select * from department where dptid=11union all select d.* from Department d inner join dep p on d.DptParentID=p.
阅读全文
posted @ 2022-02-09 15:13
posted @ 2022-02-09 15:13
posted @ 2021-07-27 14:22
posted @ 2020-08-19 19:14
posted @ 2020-05-28 09:31
posted @ 2020-04-22 12:03