Created
March 13, 2013 20:23
-
-
Save bbrothers/5155805 to your computer and use it in GitHub Desktop.
mysql string replace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE my_table | |
SET my_field = REPLACE(my_field, 'old-string', 'new-string') | |
WHERE my_field LIKE '%old-string%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment