碎嘴子教学mysql数据库自增 主要分为两种方式: 1.建表时设置自增 2.建表后设置自增 方式一:建表时设置 CREATE TABLE `test1` ( `id` int primary key auto_increment, `age` int DEFAULT NULL, `inttl` int DEFAULT NULL, `test` int DEFAULT NULL, `testc` char(2) DEFAULT NULL ) ENGINE