Created
August 31, 2013 22:05
-
-
Save pandauxstudio/6400924 to your computer and use it in GitHub Desktop.
Query to replace a part of a string in a db column.
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 `Resource` | |
SET FileName = REPLACE(FileName, '/trt/web', '') | |
WHERE FileName LIKE ('/trt/web%'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment