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:

  1. why that?

  2. 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; 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo