Everything from Virtual Private Server (VPS) tips, to CCTV and more.
Random header image... Refresh for more!

Quick n easy search and replace in mysql

I had to do a quick search and replace on a field that had some records with the ‘http’ bit duplicated, so this did the trick.

update `pages` SET url=(replace (url, ‘http://http://’,'http://’))

0 comments

There are no comments yet...

Kick things off by filling out the form below.

Leave a Comment