Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / April 2006

Tip: Looking for answers? Try searching our database.

Searching for strings and replacing them

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Harlin - 24 Apr 2006 13:00 GMT
I have 2 databases I need to search through. I am looking for say...
"bad.string" and want to replace it with "good.string". I do not know
where in which table or even field the "bad.string" will show up in.
What commands could I use to get this done?

Thanks,

Harlin Seritt
Knut Stolze - 24 Apr 2006 13:06 GMT
> I have 2 databases I need to search through. I am looking for say...
> "bad.string" and want to replace it with "good.string". I do not know
> where in which table or even field the "bad.string" will show up in.
> What commands could I use to get this done?

You will have to query all string columns in all tables and execute
respective update statements.

Signature

Knut Stolze
DB2 Information Integration Development
IBM Germany

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.