当前位置:网站首页>SYS_ CONNECT_ BY_ Path (column, 'char') combined with start with connect by prior
SYS_ CONNECT_ BY_ Path (column, 'char') combined with start with connect by prior
2022-04-23 08:25:00 【beinlife】
Query effect :

Query statement :
select SYS_CONNECT_BY_PATH(departmentname,'>') ,t.departmentname,level
from hrmdepartment t
start with departmentname=' New business division ' connect by prior id=superId;
【 sentence :
① from “ New business division “ Start , Tracing from the root node to the child node ; If you want to be a child The node goes back to the root node , Should be :superId=id;
②level Is the current level of the value , such as ” New business division “ yes 1 Level node ,” Brand marketing headquarters “ yes 2 Level node
③”> New business division > Brand marketing headquarters >B2B> Hotel business “, This is with 【SYS_CONNECT_BY_PATH(column,'char') 】 The only effect
】
版权声明
本文为[beinlife]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230734169197.html
边栏推荐
猜你喜欢
随机推荐
通过实现参数解析器HandlerMethodArgumentResolver接口来自定义注解
How to encrypt devices under the interconnection of all things
情境领导者-第七章、解决绩效问题
DOM 学习之—添加+-按钮
The simple problem of leetcode is to calculate the numerical sum of strings
LeetCode中等题之旋转函数
【学习】从零开始的音视频开发(9)——NuPlayer
[learning] audio and video development from scratch (9) -- nuplayer
JS中复制数组
Flink SQL实现流批一体
[effective go Chinese translation] part I
Green apple film and television system source code film and television aggregation film and television navigation film and television on demand website source code
ApplicationReadyEvent的使用
LeetCode簡單題之計算字符串的數字和
LeetCode简单题之三除数
An example of network communication based on TCP / IP protocol -- file transmission
2022.4.11-4.17 AI industry weekly (issue 93): the dilemma of AI industry
分布式消息中间件框架选型-数字化架构设计(7)
欧圣电气深交所上市:市值52亿 陆为东父女为美国籍
关于ORB——SLAM运行中关键帧位置越来越近的异常说明









