建表时添加的auto_increment=5,表示初值从5开始,自增是每次添加一个数据+1,5,6,7,8,9
我的理解:
Auto_increment=3,每一次自增间隔为3。
查阅:
id int(11) unsigned NOT NULL AUTO_INCREMENT,
insert into 表名(id,name) VALUE(null,'');
insert into 表名(id,name) VALUE(0,'');
insert into 表名(id,name) VALUE(,'');
当主键自增字段设置为NOT NULL非空约束时,填入null,0,或者其他的值,
都会自增,从初值开始5,每次增长1.
建表后添加/修改主键自增
建表后添加/修改自增SQL语句