MySql find & replace

Get in touch

If you would like help with "MySql find & replace" or with any other topic then feel free to get in touch for a chat.

by | 13/09/2011 | Code Snippets, Tutorials | 0 comments

Having recently moved the blog from wearekuiper.com to wearekuiper.com I discovered that the images within the posts were now broken, I could manually go through each post and reattach the images but performing a find and replace on the MySql database would be a much quicker way of getting things back on track.

 
update [table_name] set [field_name] = replace([field_name],
'[string_to_find]','[string_to_replace]');

Can we help?

If you would like help with this, or any other topic then don’t hesitate to get in touch with us.