Click to See Complete Forum and Search --> : Update a certain word in all entries


eyecrave
04-23-2009, 09:26 PM
I need to update my entire database to reflect my new domain name. I need to change all the entries and with over 3000 entries I'd prefer not to do them one at a time.

How can I accomplish this?

chazzy
04-24-2009, 07:01 AM
http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_replace

something like this probably..


UPDATE table SET column = REPLACE(column,'old domain','new domain');