SELECT REGEXP_SUBSTR(:p_string,
'[^,]+',
1,
LEVEL)
AS site
FROM DUAL
CONNECT BY LEVEL <= LENGTH(REGEXP_REPLACE(:p_string,
'[^,]*')) + 1;
SELECT REGEXP_SUBSTR('1001,1002,1003',
'[^,]+',
1,
LEVEL)
AS site
FROM DUAL
CONNECT BY LEVEL <= LENGTH(REGEXP_REPLACE('1001,1002,1003',
'[^,]*')) + 1;
No comments:
Post a Comment