Archives

Wednesday, December 14, 2016

How to replace space and have the values as rows

    SELECT REGEXP_SUBSTR (REGEXP_REPLACE (:test, '[^0-9A-Za-z]', ','),
                          '[^,]+',
                          1,
                          LEVEL)
              details
      FROM DUAL
CONNECT BY REGEXP_SUBSTR (REGEXP_REPLACE (:test, '[^0-9A-Za-z]', ','),
                          '[^,]+',
                          1,
                          LEVEL)
              IS NOT NULL;

No comments:

Post a Comment