Created
February 20, 2018 12:43
-
-
Save SuN-80/4113eafdbf9861cc7285c1e17c261ee6 to your computer and use it in GitHub Desktop.
Search/Replace All occurrences in MySQL
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 mytable SET field = replace(field, 'search_for', 'replace_with'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment