可以这样修改:
alter table tabname modify yourcolumn int auto_increment;
设置后插入不用写这个字段,但表名后面没跟明确的字段名的话,自增列value要写为default,表名后有写字段名且不包含自增列的话,就不用写自增列的值