
Para exibir informações em uma tabela TabTest é preciso executar o seguinte comando (a opção \G melhora a formatação do resultado) :
mysql> show create table TabTest\G
Tabela: 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)
Saiba que este comando não funciona caso o banco de dados tenha sido inicializado com as opções
--safe-show-database ou
--skip-show-database.