Skip to content

Instantly share code, notes, and snippets.

@tracend
Created June 18, 2016 20:46
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 tracend/6b997dbba31e969c00028c99774267f5 to your computer and use it in GitHub Desktop.
Save tracend/6b997dbba31e969c00028c99774267f5 to your computer and use it in GitHub Desktop.
SQL notes

Brute force string update

Change the text content in the db using:

UPDATE [table] SET [field] = REPLACE([field],'[FIND]','[REPLACE]');

where field is a column name like post_content or guid.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment