Created
October 15, 2015 07:17
-
-
Save betawax/4ab5518ac1e98732b622 to your computer and use it in GitHub Desktop.
MySQL search & replace
This file contains 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 [TABLE] SET [FIELD] = REPLACE([FIELD], 'foo', 'bar') WHERE INSTR([FIELD], 'foo') > 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment