Connecting Tech Pros Worldwide Help | Site Map

Reset AutoIncrement Colume value

  #1  
Old August 28th, 2008, 06:33 PM
Newbie
 
Join Date: Aug 2008
Posts: 1
I need to change the value for a autoincrement value to start value of 10000 not 0. The column already exists.
  #2  
Old August 28th, 2008, 10:26 PM
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,702
Provided Answers: 4

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