In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. The basic syntax is: select... From where start with connect by; / /: filter condition, which is used to filter all returned records. / /: the qualification for re-starting the root node of the query result. /: join condition / / if prior in connect by prior is omitted, the query will not do deep recursion. two。 Query the current menu and all parent menus select t.* from s_menu t start with t.menu 510 'connect by prior t.fid = t.id3. Query up all superior menus (excluding the current menu) select t. * from s_menu t start with t. Connect by prior t.fid 510 'menu = t.id4. Query down the current menu and all subordinate menus select t. * from s_menu t start with t. Connect by prior t. Id = t.fid 5. Query down all subordinate menus (excluding the current menu) select t. * from s_menu t start with t. Connect by prior t. Id = t.fid6. Query the recursive path select t. Idret t. Namedepartment fiddirection substr (sys_connect_by_path (NAME,'- >'), 3) menu_pathfrom s_menu t start with t.name = 'system function' connect by prior t.id = t.fid order by t.id7. Hierarchical display of select t.idrpad LPad ('-', (level-1) * 4 ID'| -') | | lpad ('", 2) | | t.name | | rpad ('", 2) the key to upward and downward recursion is the last condition. If the parent ID equals ID, it recurses upward, and vice versa.
Reference: http://www.cnblogs.com/wanghonghu/archive/2012/08/31/2665945.html
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
SQL > select flashback_on from vested database match FLASHBACK on Murray-
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.