myMySQL数据库实现自增步长调整 MySQL数据库使用教程

凤凰 2021-1-19 81 1/19

myMySQL数据库实现自增步长调整 MySQL数据库使用教程

首先执行命令,查看配置,如下:

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 -

凤凰

1月19日09:17

最后修改:2021年1月19日
0

非特殊说明,本博所有文章均为博主原创。