使用SQL我想从具有字段结构的单个menutable返回菜单名称列表:MenuEntry,intmenu,Name,URL,intsubmenu
我在URL的开头和结尾作为通配符作为文本框中的搜索关键字传递,我查看了get a recursive parent list中的解决方案,但我的表包含intsubmenu(子ID),我还需要显示格式中的菜单 根菜单>子菜单1>单击搜索按钮时的子菜单。
menuEntry intMenu description URL intSubMenu
1 1001 Showroom /portal/default.aspx 1002
2 1002 Sales /sales/index.html 0
3 1002 Aftersales /aftersales/index.html 0
4 1002 Admin /bin/usrmgmt/Admin.aspx 1003
5 1003 Homepage /bin/usrmgmt/homepage.asp 0
6 1003 Menu /bin/usrmgmt/menu.asp 0
7 1003 Content /bin/usrmgmt/content.aspx 0
Enter :*usrmgmt*
OUTPUT: Showroom > Admin > Homepage
Showroom > Admin > Menu
Showroom > Admin > Content
To be more specific,if I enter *parent-list* in textbox,
it should fetch me the list of menus like stackoverflow.com > questions > 7569399 > get-a-recursive-parent-list