|
Show status information on a table |
|
Show status information on a table. Note, if the database was started with --safe-show-database or --skip-show-database some of these commands may not work. Note the "\G" option may provide a nicer format.
Show the create statement:
mysql> show create table dupTest\G show create table dupTest\G *************************** 1. row *************************** Table: dupTest Create Table: CREATE TABLE `dupTest` ( `pkey` int(11) NOT NULL auto_increment, `a` int(11) default NULL, `b` int(11) default NULL, `c` int(11) default NULL, `timeEnter` timestamp NOT NULL, PRIMARY KEY (`pkey`), UNIQUE KEY `a` (`a`,`b`) ) TYPE=MyISAM DEFAULT CHARSET=latin1 1 row in set (0.00 sec)
|