当前位置:网站首页>SYS_CONNECT_BY_PATH(column,'char') 结合 start with ... connect by prior
SYS_CONNECT_BY_PATH(column,'char') 结合 start with ... connect by prior
2022-04-23 07:34:00 【beinlife】
查询效果:

查询语句:
select SYS_CONNECT_BY_PATH(departmentname,'>') ,t.departmentname,level
from hrmdepartment t
start with departmentname='新事业部' connect by prior id=superId;
【语句:
①从“新事业部“开始,通过根节点向子节点追朔;如果想从子节点向根节点追朔,应该为:superId=id;
②level是值当前的等级,比如”新事业部“是1级节点,”品牌营销总部“是2级节点
③”>新事业部>品牌营销总部>B2B>酒店业务“,这个是加了【SYS_CONNECT_BY_PATH(column,'char') 】才有的效果
】
版权声明
本文为[beinlife]所创,转载请带上原文链接,感谢
https://blog.csdn.net/beinlife/article/details/52699180
边栏推荐
- C outputs a two-dimensional array with the following characteristics.
- 【解释】get ORA-12838: cannot read/modify an object after modifying it in parallel
- 一款拥有漂亮外表的Typecho简洁主题_Scarfskin 源码下载
- C language learning record -- use and analysis of string function (2)
- 英语课小记(四)
- Situational leaders - Chapter 7, solving performance problems
- 岛屿的个数
- Online yaml to XML tool
- ansible自動化運維詳解(一)ansible的安裝部署、參數使用、清單管理、配置文件參數及用戶級ansible操作環境構建
- LeetCode简单题之重新排列日志文件
猜你喜欢

LeetCode中等题之旋转函数

如何保护开源项目免遭供应链攻击-安全设计(1)

怎么读书读论文

ELK生产实践

监控智能回放是什么,如何使用智能回放查询录像

396. Rotate Function

Using qlst excel file

Detailed explanation of ansible automatic operation and maintenance (I) installation and deployment, parameter use, list management, configuration file parameters and user level ansible operating envi

Green apple film and television system source code film and television aggregation film and television navigation film and television on demand website source code

MySQL数据库中delete、truncate、drop原理详解
随机推荐
An example of network communication based on TCP / IP protocol -- file transmission
idea:使用easyYapi插件导出yapi接口
Weekly leetcode - 06 array topics 7 ~ 739 ~ 50 ~ offer 62 ~ 26 ~ 189 ~ 9
The whole house intelligence bet by the giant is driving the "self revolution" of Hisense, Huawei and Xiaomi
stm32以及freertos 堆栈解析
为什么会存在1px问题?怎么解决?
PyQt5开发之QTableWidget表头自定义与美化(附源代码下载)
[C语言] 文件操作《一》
Vowel substring in statistical string of leetcode simple problem
一款拥有漂亮外表的Typecho简洁主题_Scarfskin 源码下载
編譯原理題-帶答案
ASAN 极简原理
npm安装yarn
Goland 调试go使用-大白记录
Campus transfer second-hand market source code download
Listed on the Shenzhen Stock Exchange: the market value is 5.2 billion yuan. Lu is the East and his daughter is American
Qtablewidget header customization and beautification developed by pyqt5 (with source code download)
ApplicationReadyEvent的使用
分组背包呀
作文以记之 ~ 二叉树的后序遍历