输入banner图图片脚本导航/分类

oracle 逗号分割,列转行

REGEXP_SUBSTR(a.rolecode ,‘[^,]+‘,1,l) rolecode from ( select ‘a,aa,aaa‘ rolecode from dual ) a, (SELECT LEVEL l FROM DUAL CONNECT BY LEVEL<=100) b WHERE l <=LENGTH(a.rolecode) - LENGTH(REPLACE(rolecode,‘,‘))+1

 

oracle 逗号分割,列转行

标签: