1、Oracle函数 sys_connect_by_path

语法: select sys_connect_by_path(column_name,'connect_symbo链接标志l')  from table 
          start with ... connect by prior

写法:connect by prior column1 = column2 或者 connect by  column2 = prior column1 写法都可以,

主要看prior写在谁的前面,prior写在谁的前面谁就作为父级值(参照值)

例:

select sys_connect_by_path(ghdm,'-') from gh_ghdm start with ghdm = 22333 connect by prior ghdm =  sjghdm

select sys_connect_by_path(ghdm,'-') from gh_ghdm start with ghdm = 22333 connect by  ghdm = prior sjghdm

相关链接https://www.cnblogs.com/supermandy/p/7873233.html

最新文章

  1. Spring整合Redis
  2. Comparison method violates its general contract 关于jdk自带算法问题
  3. HTML5——同步购物车
  4. JAVA 正则表达式、汉字正则、 java正则代码
  5. Checking For User Permissions Before Updating or Inserting The Records in Oracle Forms
  6. list,set,map,数组之间的相互转换详细解析
  7. UVa 10316 - Airline Hub
  8. input子系统分析
  9. DECIMAL Data Type
  10. thecorner.com.cn - Customer Care
  11. curl几个选项
  12. 微信小程序实例教程(三)
  13. struts2遇到的一个问题。
  14. UOJ#419. 【集训队作业2018】圆形(格林公式)
  15. PPT定时器小记
  16. HDU1599(Floyd最小环)
  17. 【转】C/C++函数调用过程分析
  18. php hash算法
  19. C++模板源代码的三种组织方式
  20. UVC调试

热门文章

  1. JDK源码阅读--String
  2. PAT甲级——A1105 Spiral Matrix【25】
  3. Swagger发布服务器时错误 500 : { "Message": "An error has occurred." }
  4. PKU 百炼OJ 简单密码
  5. 2019-8-26-当-ASP.NET-Core-链接找不到时可能的原因
  6. locate,find,df,mount,du命令
  7. Mysql8+mybatisGenerator (mysql 8的逆向工程)
  8. 19-10-23-K-Aft
  9. 安卓手机--键盘谈起后 fixed背景图片被键盘顶起的问题
  10. CCS开发指南