Created
August 1, 2016 15:01
-
-
Save enlacee/ba553bd6af499f6e365c232e1bf4d354 to your computer and use it in GitHub Desktop.
sql replace mysql http://stackoverflow.com/questions/5956993/mysql-string-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 your_table | |
SET your_field = REPLACE(your_field, 'articles/updates/', 'articles/news/') | |
WHERE your_field LIKE '%articles/updates/%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment