Skip to content

Instantly share code, notes, and snippets.

@pandauxstudio
Created August 31, 2013 22:05
Show Gist options
  • Save pandauxstudio/6400924 to your computer and use it in GitHub Desktop.
Save pandauxstudio/6400924 to your computer and use it in GitHub Desktop.
Query to replace a part of a string in a db column.
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