当前位置:网站首页>oracle怎样将字符串转为多行
oracle怎样将字符串转为多行
2022-06-27 08:08:00 【雅冰石】
#将用/分隔的字符串转换为多行
with a as (select '/ABC/AA/AD/ABD/JI/CC/ALSKD/ALDKDJ' id from dual)
select regexp_substr(id,'[^/]+',1,rownum) id from a
connect by rownum<=length(regexp_replace(id,'[^/]+'))
效果如下:

#同理,将逗号分隔的字符串转为多行

--本篇文作参考了关于oracle的将字符串转换成多行 - it610.com
边栏推荐
- 关于el-date-picker点击清空参数变为null的问题
- Redis配置文件详解
- Eight misunderstandings, broken one by one (final): the cloud is difficult to expand, the customization is poor, and the administrator will lose control?
- 参考 | Win11 开启热点之后电脑不能上网
- JVM常见的垃圾收集器
- 05 观察者(Observer)模式
- No matter how good LCD and OLED display technologies are, they cannot replace this ancient display nixie tube
- Index +sql exercise optimization
- sql注入之order by注入
- [c++ primer notes] Chapter 4 expression
猜你喜欢

JVM层次上的对象的创建过程和内存布局

Redis五种基本类型

JS uses the while cycle to calculate how many years it will take to grow from 1000 yuan to 5000 yuan if the interest rate for many years of investment is 5%

Eight misunderstandings, broken one by one (final): the cloud is difficult to expand, the customization is poor, and the administrator will lose control?

淘宝虚拟产品开店教程之作图篇

MySQL索引详解

(note) Anaconda navigator flashback solution

ServletConfig与ServletContext

Rust async: SMOL source code analysis -executor

The IPO of Yefeng pharmaceutical was terminated: Yu Feng, the actual controller who had planned to raise 540million yuan, made P2P investment
随机推荐
Associated GIS: all roads lead to ue5 City
Lvgl GUI guide porting code to stm32
Implementation principle of similarity method in Oracle
[paper reading] internally semi supervised methods
爬一个网页的所有导师信息
【批处理DOS-CMD命令-汇总和小结】-将文件夹映射成虚拟磁盘——subst
参考 | Win11 开启热点之后电脑不能上网
JS use switch to output whether the result is qualified
If xn > 0 and X (n+1) /xn > 1-1/n (n=1,2,...), Prove that the series Σ xn diverges
「短视频」临夏消防救援支队开展消防安全培训授课
Pin details in rust
正确的理解MySQL的MVCC
ArrayList和LinkedList的区别
认识O(NlogN)的排序
【13. 二进制中1的个数、位运算】
Ue5 magic power - POI solution
並發編程JUC的AQS底層源碼
Install Jenkins
Index +sql exercise optimization
Mysql事务中MVCC理解超简单