一切源于一个实验,请看下面的例子: 表:复制代码 代码如下:CREATE TABLE IF NOT EXISTS `foo` ( `a` int(10) unsigned NOT NULL AUTO_INCREMENT, `b` int(10) unsigned NOT NULL, `c` varchar(100) NOT NULL, PRIMARY KEY (`a`), KEY `bar` (`b`,`a`) ) ENGINE=InnoDB; CREATE TABLE IF NOT EXISTS `foo2` ( `a` int(10) unsigned NOT NULL AUTO_INCR