The SQL that saved my life…

Pretty simple find and replace:

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

OMG, I am glad I listened in the database classes all those years ago :) I’m upgrading an older WordPress blog to the latest version and that lil query saved my life!

About Carlo

I'm a business developer in the online gaming industry with extensive SEO knowledge, IA and UI knowledge.
This entry was posted in Blogging and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>