Comma-separated string to tabular format
Comma-separated string to tabular data
Sometimes we need to extract individual data from the comma-separated strings. We can use the following query to do that in oracle.
SELECT REGEXP_SUBSTR('my comma separated string', '[^,]', 1, LEVEL) TYPE, LEVEL
FROM DUAL
CONNECT BY LEVEL <= REGEXP_COUNT('my comma separated string','[^,]') ;
Comments
Post a Comment