oracle 批量列转行 逗号分隔
发表于:2025-11-13 作者:千家信息网编辑
千家信息网最后更新 2025年11月13日,示例:with temp as(select '1,2,3' nums, 'a' names from dual union all select '4,5' nums,
千家信息网最后更新 2025年11月13日oracle 批量列转行 逗号分隔
示例:
with temp as(select '1,2,3' nums, 'a' names from dual union all select '4,5' nums, 'b' names from dual union all select '6,7' nums, 'c' names from dual union all select '8' nums, 'c' names from dual union all select '9,10' nums, 'c' names from dual union all select '11,12' nums, 'c' names from dual union all select '13,14' nums, 'c' names from dual union all select '15,16' nums, 'c' names from dual union all select '17,18' nums, 'c' names from dual union all select '19,20' nums, 'c' names from dual union all select '21,22,23,24,25,26,27,28,29,30,31,32,33,34' nums, 'c' names from dual)select regexp_substr(nums,'[^,]+',1,b.lv) order_num,namesfrom temp, (select level lv from dual connect by level<=(select max(length(regexp_replace(nums,'[^,]+'))+1) from temp)) b --用于分配行数(行数取最大的nums分隔数)where b.lv <=length(regexp_replace(nums,'[^,]+'))+1 order by order_num
最大
示例
分配
逗号
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
期货软件开发价格
杭州互联网软件开发费用
存储高通量数据的数据库
兰德网络技术有限公司招聘HR
数据库技术练习题大全
网络安全ppt免费
网络安全维护员周记
互联网科技图片
一个软件开发人员
松江信息网络安全犯罪
软件开发是否免税
mhp3水漠林数据库
服务器防火墙有问题怎么处理
株洲it软件开发学校排名
移动数据库系统
阿里服务器 网速
pdf怎么画出服务器图标
济南做手机软件开发哪家好
免流服务器搭建教程
曹忠平网络安全
科技互联网产业大会
mysql数据库压缩访问
云服务器的安全性谁负责
电脑上的数据库文件怎么查
新世界收不到服务器
服务器读取sql数据
请于这台服务器的管理员
保利地产数据库是什么
esxi服务器新增物理内存
web服务器与php通信原理