Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the number auto_increment starts from

Status
Not open for further replies.
Joined
Feb 16, 2003
Messages
87
Location
GB
Hello!

When I create a new table, I want a field to use auto_increment but I'd like the number to start from 100 rather than 0 - is that possible?

I'm quite new to MySQL, but can't find anything in the docs.

I'm using MyISAM if that makes any difference!

Thanks all

Simon
 
Found this now!

ALTER TABLE customers AUTO_INCREMENT = 100;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top