I have procedure that has parameter that takes comma separated value , so when I enter Parameter = \'1,0,1\'
I want to return \' one , Zero , One\' ?
You could use REPLACE function.
For example,
SQL> WITH DATA(str) AS( 2 SELECT '1,0,1' FROM dual 3 ) 4 SELECT str, 5 REPLACE(REPLACE(str, '0', 'Zero'), '1', 'One') new_str 6 FROM DATA; STR NEW_STR ----- ------------------------------------------------------------ 1,0,1 One,Zero,One SQL>