By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
1 rows affected
| COL_VALUES | LEVEL |
|---|---|
| a | 1 |
| b | 2 |
| c | 3 |
| d | 4 |
| INSTR(',ABCD,D,E,',',',1,1) | SUBSTR(',ABCD,D,E,',INSTR(',ABCD,D,E,',',',1,1),INSTR(',ABCD,D,E,',',',1,2)-INSTR(',ABCD,D,E,',',',1,1)) |
|---|---|
| 1 | ,abcd |