1

Is there a way I can set an autoincrement value for all the tables in my database to be (say) 1001 rather than 1. My DB has tens of tables, I want to set all the auto-increment fields to start from 1001

I don't want to go and do an alter table query on each table.. I'm looking for a QUICK and easy way to alter all the tables?

Thanks!

WonFineDay
  • 77
  • 1
  • 8

1 Answers1

0

Run this SQL Query: ALTER TABLE NameOfTable AUTO_INCREMENT = 1000;

It will start the count from 1000.