Created
October 24, 2015 17:31
-
-
Save IAmJulianAcosta/b4b6d89126e9a30e8172 to your computer and use it in GitHub Desktop.
Changing charset of all database tables
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
SELECT CONCAT( "ALTER TABLE `", TABLE_NAME, "` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" ) AS ExecuteTheString | |
FROM INFORMATION_SCHEMA.TABLES | |
WHERE TABLE_SCHEMA = "name_of_table" | |
AND TABLE_TYPE = "BASE TABLE" | |
LIMIT 0 , 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment