|
HI, 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
(comments are locked)
|
|
(comments are locked)
|
|
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;
(comments are locked)
|

