mysql自增列1、mysql创建带自增列的表 create table inc(id int(10) not null auto_increment,name varchar(20),primary key (id)); 注意: 自增列必须是key 前面的id没有引号,后面设置成