Connecting Tech Pros Worldwide Help | Site Map

Reset AutoIncrement Colume value

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 28th, 2008, 05:33 PM
Newbie
 
Join Date: Aug 2008
Posts: 1
Default Reset AutoIncrement Colume value

I need to change the value for a autoincrement value to start value of 10000 not 0. The column already exists.
Reply
  #2  
Old August 28th, 2008, 09:26 PM
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Age: 22
Posts: 3,541
Default

Hi.

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

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.