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!

How to update the column value for multiple tables

kumar73Jan 14 2011 — edited Jan 16 2011
Hello Friends,

I have group of tables ( say tbl1, tbl2, tbl3,tbl4, tbl5 ) with same column name say x_type_cd .

I want to replace - ( hiphen ) characters of the column values with underscore (_) for all the tables..

select x_type_cd from tbl1;

abc
def
a-b
ab-c
abc-d


After replacing hyphen to underscore the data is ..

select x_type_cd from tbl1;

abc
def
a_b
ab_c
abc_d

Can any one suggest a solution for this ..
I want to have a script to implement this change.

thanks/kumar
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 13 2011
Added on Jan 14 2011
5 comments
2,330 views