Oracle
 sql >> Database >  >> RDS >> Oracle

Converti ogni carattere di una stringa in una riga

with temp as (select '12456' as str from dual)
select substr(str,level,1)
from temp
connect by level <= length(str);

Risultato:

1
2
4
5
6