Created
February 12, 2019 15:25
-
-
Save AndrewChamp/361285ae80ef8fb60c2a75b20425b047 to your computer and use it in GitHub Desktop.
MySQL Find & 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_NAME | |
SET COLUMN_NAME = REPLACE(COLUMN_NAME, 'string/to/find', 'string/to/replace') | |
# OPTIONAL: Replaces embedded strings | |
WHERE COLUMN_NAME LIKE ('%string_to_find%'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment