Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 28th, 2008, 06: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, 10:26 PM
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Age: 22
Posts: 2,777
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 network members.
Post your question now . . .
It's fast and it's free

Popular Articles