Skip to content

Instantly share code, notes, and snippets.

@Dan0sz
Last active March 10, 2019 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dan0sz/5aa71a39212958174a446c5a46c01021 to your computer and use it in GitHub Desktop.
Save Dan0sz/5aa71a39212958174a446c5a46c01021 to your computer and use it in GitHub Desktop.
MySQL find and replace query
UPDATE `table_name`
SET `column_name` = replace(column_name, 'olddomain.com', 'newdomain.com')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment