By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| REGEXP_SUBSTR(TO_CHAR('14521;65412;65845'),'[^;]+',1,LEVEL) |
|---|
| 14521 |
| 65412 |
| 65845 |
| REGEXP_SUBSTR(TO_CHAR('1;0;1'),'[^;]+',1,LEVEL) |
|---|
| 1 |
| 0 |
| 1 |
| COD | FLAG |
|---|---|
| 14521 | 1 |
| 65412 | 0 |
| 65845 | 1 |
| COD | FLAG |
|---|---|
| 14521 | 1 |
| 65412 | 0 |
| 65845 | 1 |