Find&Replace on a database table
Have you ever imagined how nice would be if you were able to run a find and replace on a database table?
It's possible!
You just need to run this query:
update [tablename] set [fieldname] = replace([fieldname],'[stringtofind]','[stringto_replace]');
Written by Renato Vasconcellos Gomes
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mysql
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#