MySQL autoincrement column jumps by 10- why? -
i have couple tables in created object id either int or bigint, , in both cases, seem autoincrement 10 (ie, first insert object id 1, second object id 11, third object id 21, etc). 2 questions:
why that?
is problem?
check see seed value of autoincrement isn't set 10.
you can check by:
select auto_increment information_schema.tables table_name='the_table_you_want';
as noted elsewhere can change using system variable @@set_auto_increment_increment
set @@auto_increment_increment=1;
if want start values @ number other 1 can go:
alter table tbl auto_increment = 100;