为什么没查询出子级呢?
哪里写错了?
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
慕丝7291255
牛魔王的故事
波斯汪
相关分类