Created
November 24, 2021 05:14
-
-
Save bhochieng/0dda2e5b4a4d9989880ab1d825886fbf to your computer and use it in GitHub Desktop.
split comma delimited string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT REGEXP_SUBSTR ('23,34,45,56','[^,]+',1,1) as "token" | |
FROM DUAL | |
/ | |
SELECT REGEXP_SUBSTR ('23,34,45,56','[^,]+',1,2) as "token" | |
FROM DUAL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you need to split '.' delimited string use,
SELECT REGEXP_SUBSTR ('23.34.45.56','[^.]+',1,1) as "token"
FROM DUAL
/