Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change AutoIndex number Mysql

Tags:

In my table I have auto increment id which is having its number like 1 to 66,440 and next number is 88846790 + increment from here till 88846900.

There is no records in between 66440 to 88846790

I want my next auto increment number to be 66441 but its taking 88846791, can you help me in setting next auto increment to 66441,

like image 770
jsduniya Avatar asked Jul 05 '13 06:07

jsduniya


1 Answers

alter table tablename AUTO_INCREMENT=664441 

should do

like image 142
Satya Avatar answered Oct 13 '22 02:10

Satya