WITH T AS (
SELECT 'AA' AS ID, '11,22,33' AS COL FROM DUAL
)
SELECT A.ID , REGEXP_SUBSTR(COL , '[^,]+' , 1 , LV ) COL
FROM T A
, (SELECT LEVEL LV FROM DUAL CONNECT BY LEVEL <= 8) B
WHERE LV <= REGEXP_COUNT(COL,',') + 1
댓글등록
SQL문을 포맷에 맞게(깔끔하게) 등록하려면 code() 버튼을 클릭하여 작성 하시면 됩니다.