Created
July 20, 2011 13:20
-
-
Save simonw/1094933 to your computer and use it in GitHub Desktop.
Show MySQL tables and their charsets
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 | |
| T.table_name, CCSA.character_set_name | |
| FROM | |
| information_schema.`TABLES` T, | |
| information_schema.`COLLATION_CHARACTER_SET_APPLICABILITY` CCSA | |
| WHERE | |
| CCSA.collation_name = T.table_collation | |
| AND T.table_schema = "YOUR_DB_NAME"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment