Show a MySQL table's charset, collation and engine

Posted . Visible to the public.

Use this MySQL command to show further info about a table:

SHOW CREATE TABLE tags;

This will output a table schema like this:

CREATE TABLE `tags` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `index_tags_on_name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
Profile picture of Henning Koch
Henning Koch
Keywords
character, set
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2010-10-27 12:28)