Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Need to Update Email in a string

1567114Oct 13 2017 — edited Oct 13 2017

Hello,

I need to update the sales@test.com to salesteam@test.com using UPDATE.is there any way to use a script to update as a whole instead of doing one by one update.

Below are scenarios:

create table test_tab_dump

(

code varchar2(10),

attribute7 varchar2(150));

insert into test_tab_dump values('0001','test@abc.com;sdf@abc.com;sales@test.com;tyu@abc.com');

insert into test_tab_dump values ('0002','test4@abc.com;sdf@abc.com;sales@test.com;fgh@abc.com');

insert into test_tab_dump values ('0003','test2@abc.com;sdf@abc.com;sales@test.com;kjl@abc.com');

insert into test_tab_dump values ('0004','test1@abc.com;sdf@abc.com;sales@test.com;wer@abc.com');

commit;

This post has been answered by mathguy on Oct 13 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 10 2017
Added on Oct 13 2017
22 comments
932 views