Mysql自增和步长

169 阅读1分钟

-- 步长设置

SET @@auto_increment_increment=1

-- 自增列重置

alter table `base64` drop column id; 
alter table `base64` add id BIGINT;
alter table `base64` change  id id BIGINT not null auto_increment primary key;