Created
August 16, 2019 15:14
-
-
Save ynroot/0e1448c7448e8a9264e349b6a890949e to your computer and use it in GitHub Desktop.
convert encoding on a table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UPDATE | |
| contas | |
| SET morada = | |
| IF(CONVERT(CAST(CONVERT(morada USING latin1) AS BINARY) USING utf8) IS NULL, morada, | |
| CONVERT(CAST(CONVERT(morada USING latin1) AS BINARY) USING utf8)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment