字段拆分行:
select regexp_substr('1,2','[^,]+1',1,LEVEL) from dualconnect by LEVEL <= regexp_count('1,2',',')+1;
行合并为字段值:
select listagg(appno,',') within group (order by appno) aa from dual where emp='xxx'
本文共 246 字,大约阅读时间需要 1 分钟。
字段拆分行:
select regexp_substr('1,2','[^,]+1',1,LEVEL) from dualconnect by LEVEL <= regexp_count('1,2',',')+1;
行合并为字段值:
select listagg(appno,',') within group (order by appno) aa from dual where emp='xxx'
转载于:https://my.oschina.net/vitoh/blog/651088