Oracle replace function

Replace function

replace (the original field, "the contents of the original field old", "new original field content")

update demo set name = replace (name , ' hospital', 'Medical School 2') where name like '% hospitals%';
update demo set name = replace (name , ' hospital', 'Medical School 2')

Replace function

replace (the original field, "the contents of the original field old", "new original field content")

update demo set name = replace (name , ' hospital', 'Medical School 2') where name like '% hospitals%';
update demo set name = replace (name , ' hospital', 'Medical School 2')

Guess you like

Origin www.cnblogs.com/turnip/p/11639615.html