Oracle 多行转一行,一行转多行

select id, vnum, to_char(wmsys.wm_concat(vname)) c  from tab_test group by id,vnum;





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)