当前位置:网站首页>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
边栏推荐
- Protobuf简介
- [effective go Chinese translation] part I
- input元素添加监听事件
- Overview of bus structure
- synchronized 实现原理
- JS converts tree structure data into one-dimensional array data
- ansible自动化运维详解(一)ansible的安装部署、参数使用、清单管理、配置文件参数及用户级ansible操作环境构建
- vslam PPT
- 一键清理项目下pycharm和Jupyter缓存文件
- 2022.4.11-4.17 AI industry weekly (issue 93): the dilemma of AI industry
猜你喜欢
通过实现参数解析器HandlerMethodArgumentResolver接口来自定义注解
怎么读书读论文
欧圣电气深交所上市:市值52亿 陆为东父女为美国籍
监控智能回放是什么,如何使用智能回放查询录像
5.6 综合案例-RTU-
Failed to convert a NumPy array to a Tensor(Unsupported Object type int)
LeetCode-199-二叉树的右视图
RPC procedure
Qt利用QtXlsx操作excel文件
2022.4.11-4.17 AI industry weekly (issue 93): the dilemma of AI industry
随机推荐
Failed to convert a NumPy array to a Tensor(Unsupported Object type int)
Comparison of indoor positioning technology
Common regular expressions
ajax防止缓存方法
Asan minimalism
扎心了!一女子发朋友圈羡慕别人按时发工资被开除,连点赞的同事也一同被开除了...
CSV column extract column extraction
Online yaml to XML tool
【深度好文】Flink SQL流批⼀体化技术详解(一)
Somme numérique de la chaîne de calcul pour un problème simple de leetcode
数论求a^b(a,b为1e12级别)的因子之和
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
Kubernetes in browser and IDE | interactive learning platform killercoda
Generate and parse tokens using JWT
Flink SQL实现流批一体
记录:js删除数组中某一项或几项的几种方法
监控智能回放是什么,如何使用智能回放查询录像
The simple problem of leetcode is to calculate the numerical sum of strings
输入/输出系统