mysql check collation of a table

Scott picture Scott · Sep 30, 2010 · Viewed 92.4k times · Source

How can I see what collation a table has? I.E. I want to see:

+-----------------------------+
|  table  |     collation     |
|-----------------------------|
| t_name  |  latin_general_ci |
+-----------------------------+

Answer

Lekensteyn picture Lekensteyn · Sep 30, 2010

SHOW TABLE STATUS shows information about a table, including the collation.

For example SHOW TABLE STATUS where name like 'TABLE_NAME'