Created
April 17, 2017 11:25
-
-
Save velll/b25ddca9e1ccdbfc9a070f810a518612 to your computer and use it in GitHub Desktop.
Substrings with connect by
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 SUBSTR('123232', 1, LENGTH('123232') - LEVEL + 1), | |
LENGTH('123232') - LEVEL + 1 N_PREFIX_LENGTH | |
FROM DUAL | |
CONNECT BY SUBSTR('123232', 1, LENGTH('123232') - LEVEL + 1) IS NOT NULL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment