Skip to content

Instantly share code, notes, and snippets.

@dimaspante
Created January 3, 2023 16:20
Show Gist options
  • Save dimaspante/5cf42d63bdcd59040b38537a8f66ddda to your computer and use it in GitHub Desktop.
Save dimaspante/5cf42d63bdcd59040b38537a8f66ddda to your computer and use it in GitHub Desktop.
MySQL tips
/*! Convert field content to utf8 */
UPDATE table SET field = convert(cast(convert(field using latin1) as binary) using utf8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment