Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yanknudtskov/8255307 to your computer and use it in GitHub Desktop.
Save yanknudtskov/8255307 to your computer and use it in GitHub Desktop.
Search and replace in MySQL table
update table_name set field_name = replace(field, 'search_string', 'replace_string') where instr(field_name, 'search_string') > 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment