[MySQL]Show information on a table
To view information on a TabTest table must run the following command (option\G improves formatting of the u outcome):
mysql> show create table TabTest\G
1. row
Table: TabTest
Create Table: CREATE TABLE `tabtest` (
`cle_prim` int(4) NOT NULL AUTO_INCREMENT,
`x` int(11) DEFAULT NULL,
`y` int(11) DEFAULT NULL,
`z` int(11) DEFAULT NULL,
PRIMARY KEY (`cle_prim`),
UNIQUE KEY `x` (`x`,`y`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1
1 row in set (0.00 sec)
Note that this command does not work if the database is started with the --safe-show-database or --skip-show-database.