Hi I know how to convert a,b,c,d,e into
a
b
c
d
e
I have written the below query for the same.
select substr(replace('a,b,c,d,e',',',null),level,1) 
from dual 
connect by level <=length(replace('a,b,c,d,e',',',null));
but I am not able to convert aa,b,cc,d 
 into
aa
b
cc
d
Is there anyway we can do the same when we don't know the length of characters