mysql id自增批改
mysql id自增修改
mysql 修改id为自增:
alter table 表名 modify column 列名 类型 not null auto_increment ;
例: alter table users modify column id int(18) not null auto_increment;
mysql 把id自增去掉:
alter table 表名 modify column 列名 类型 not null ;
例:alter table users modify column id int(18) not null;