首页 > 其他 > 详细

菜单展开递归查询

时间:2019-03-19 14:14:45      阅读:166      评论:0      收藏:0      [点我收藏+]
SELECT LEVEL,
       CONNECT_BY_ISLEAF,
       CONNECT_BY_ROOT t.PROMPT,
       SYS_CONNECT_BY_PATH(t.PROMPT, ‘->‘)
  FROM (select tt.*
          from fnd_menu_entries_vl tt
         where (tt.SUB_MENU_ID is not null or tt.FUNCTION_ID is not null)
           and tt.PROMPT is not null) t
 START WITH t.MENU_ID =
            (select fr.MENU_ID
               from fnd_responsibility_vl fr
              where fr.RESPONSIBILITY_NAME like ‘%总帐超级%‘)
CONNECT BY PRIOR t.SUB_MENU_ID = t.MENU_ID
 ORDER SIBLINGS BY t.ENTRY_SEQUENCE;

 

菜单展开递归查询

原文:https://www.cnblogs.com/lizicheng/p/10558117.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!