为什么没查询出子级呢?
哪里写错了?
with cte as
(
select menuId, ParentID, menuName FROM voion_Menu
where ParentID=-1
union all
select d.menuId, d.ParentID, d.menuName from cte c inner join voion_Menu d
on c.ParentID = d.menuId
)
select * from cte
添加回答
举报
0/150
提交
取消