Skip to content

Instantly share code, notes, and snippets.

@simonw
Created July 20, 2011 13:20
Show Gist options
  • Select an option

  • Save simonw/1094933 to your computer and use it in GitHub Desktop.

Select an option

Save simonw/1094933 to your computer and use it in GitHub Desktop.
Show MySQL tables and their charsets
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