由于某种原因,MySQL表增加了10 [英] MySQL table incrementing by 10 for some reason
本文介绍了由于某种原因,MySQL表增加了10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
由于某种原因,mysql表中的id字段将增加10(11、21、31).这是表的定义:
The id field in a mysql table is incrementing by 10 (11, 21, 31) for some reason. Here is the table definition:
CREATE TABLE `clients` (
`id` int(11) NOT NULL auto_increment,
`first_name` varchar(255) default NULL,
`last_name` varchar(255) default NULL,
) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8;
如果我在SQL中执行简单的插入语句,则下一个ID将为41.
If I do a simple insert statement in SQL the next ID will be 41.
推荐答案
You have auto_increment_increment
set to 10, change it back to 1.
这篇关于由于某种原因,MySQL表增加了10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文