該表的值顯示在表DDL中。嘗試SHOW CREATE TABLE yourTableName
例子:
CREATE TABLE `test`.`auto` (
`ID` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`NAME` CHAR(1) NOT NULL
) ENGINE = InnoDB;
INSERT INTO `test`.`auto` (`ID`, `NAME`) VALUES (NULL, 'A');
INSERT INTO `test`.`auto` (`ID`, `NAME`) VALUES (NULL, 'B');
SHOW CREATE TABLE test.auto;
CREATE TABLE `auto` (
`ID` int(10) unsigned NOT NULL auto_increment,
`NAME` char(1) collate utf8_bin NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin
一年,謝謝 – wangzhiju