Apr 19 2010

I didn’t even think you could do this:

UPDATE table SET something = REPLACE(something,'oldtext','newtext');

How handy! For replacing text in MySQL tables that is… not for anything else really.

One Response to “Replacing text in MySQL text fields”

  1. Jasper says:

    Yeah, I like that one. Shame you can’t do regex replace, though.

Leave a Reply