Connecting Tech Pros Worldwide Forums | Help | Site Map

Reset AutoIncrement Colume value

Newbie
 
Join Date: Aug 2008
Posts: 1
#1: Aug 28 '08
I need to change the value for a autoincrement value to start value of 10000 not 0. The column already exists.

Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,748
#2: Aug 28 '08

re: Reset AutoIncrement Colume value


Hi.

You could use the ALTER TABLE syntax.
Like:
Expand|Select|Wrap|Line Numbers
  1. ALTER TABLE myTable AUTO_INCREMENT = 10000;
  2.  
Reply


Similar MySQL Database bytes