期望
查询菜单树指定父节点下的所有子菜单,并按照菜单的排序号在在层级内进行排序
SQL如下
SELECT level,t.module_pxh,t.module_id, rpad('|', 4 * level, '--') || t.module_name
FROM sys_module T
where t.module_cjfs = 1
start with t.module_pid like '8a8180b86c5fe203016c601a3aef0027'
connect by prior t.module_id = t.module_pid
ORDER SIBLINGS BY t.module_pxh ASC;
效果
20200910100713.png














网友评论