Created
January 26, 2016 06:53
-
-
Save stevepereira/8eb16e339dc27ffcc56a to your computer and use it in GitHub Desktop.
Convert tables to unicode
This file contains 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
SELECT CONCAT("ALTER TABLE ", TABLE_NAME," DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;") AS ExecuteTheString | |
FROM INFORMATION_SCHEMA.TABLES | |
WHERE TABLE_SCHEMA="99" | |
AND TABLE_TYPE="BASE TABLE"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment