首先执行命令,查看配置,如下:
show variables like '%increment%';
如果:
auto_increment_increment=2
(免费学习视频教程推荐:mysql视频教程)
则执行:
set @@global.auto_increment_increment = 1; set @@auto_increment_increment =1;
如果:
auto_increment_offset=2
则执行:
set @@global.auto_increment_offset =1; set @@auto_increment_offset =1;
相关文章教程推荐:mysql教程
以上就是mysql实现自增步长调整的详细内容,更多请关注本站其它相关文章!
- THE END -
最后修改:2021年1月19日
非特殊说明,本博所有文章均为博主原创。
如若转载,请注明出处:https://www.xuanloog.cn/1593.html