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.
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.
April 19th, 2010 at 5:31 pm
Yeah, I like that one. Shame you can’t do regex replace, though.