I am having a string variable. Where the values are delimited. For example: String sample='a,b,c,d,e'
How to split this string into mutiple values and pass it to an arry?
Regards BI DWH BALA
asked Nov 26 '09 at 05:10 PM in Default
BI DWH BALA
with strings as (select 'a;b;c;d;e;f' str , ';' sep from dual) select regexp_substr ( str , '[^' || sep || ']+' , 1 , level ) word from strings connect by level <= (length ( str ) - length ( replace ( str , sep ) )) / length ( sep ) + 1;
answered Jun 29 '10 at 04:18 AM