replace('orig-string', 'searched-string');
replace('orig-string', 'searched-string', 'replaced-string)
drop table replace_table;
create table replace_table (
str varchar2(30),
find varchar2(10),
subst varchar2(10)
);
insert into replace_table values ('ABC DEF GHI', 'DEF' , 'bla' );
insert into replace_table values ('I am $name' , '$name', 'Rene');
insert into replace_table values ('Moo Foo Doo', 'oo' , 'XX' );
insert into replace_table values ('Hello World', 'World', null );
column R format a30
select str, find, subst, replace(str, find, subst) R from replace_table;