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!

update a specific string in one sql statement

vkjujuApr 24 2017 — edited Apr 25 2017

Hi, we'd like to update a specific string on a text columns, ie:

before: xxcv adfadf adfadf adfadfadf name : Joe xzczvzdfasdfa a dfadfadfadsfasdfafd

after : xxcv adfadf adfadf adfadfadf name: xxxxxxxxxx xzczvzdfasdfa a dfadfadfadsfasdfafd

before: aaaaaaaaaaaaaaaaa name: Mary bbbbbbbbbbbbbbbbbbb

after: aaaaaaaaaaaaaaaaa name : xxxxxxxxxx bbbbbbbbbbbbbbbbbbb

....

each column is free of type and they all have "name : " in it , any advice would be appreciated

we'd like to do it with "replace, substring..." , but it's flexible column , is it be possible ?

This post has been answered by Frank Kulash on Apr 24 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2017
Added on Apr 24 2017
19 comments
567 views