What I've done is insert a bogus record at ID 999, then the next one will be
1000 and upwards. You can then delete the 999 record if you wish. mySQL will
NOT fill in the 1-999 spots automatically. 

> -----Original Message-----
> From: Egor Egorov [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 25, 2003 3:50 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Setting default auto_increment start int
> 
> 
> "Javan B." <[EMAIL PROTECTED]> wrote:
> > 
> > Just a quick question: How do I set the auto increment
> > for a field to start from an integer other than 1.
> > 
> > For example, I would like to be able to have the auto
> > increment counter start from 1000.
> > 
> 
> Use AUTO_INCREMENT option of CREATE TABLE statement:
>       http://www.mysql.com/doc/en/CREATE_TABLE.html
> 
> 
> 
> -- 
> For technical support contracts, goto 
> https://order.mysql.com/?ref=ensita
> This email is sponsored 
> by Ensita.net http://www.ensita.net/
>    __  ___     ___ ____  __
>   /  |/  /_ __/ __/ __ \/ /    Egor Egorov
>  / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
> /_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
>        <___/   www.mysql.com
> 
> 
> 
> 
> -- 
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    
> http://lists.mysql.com/mysql?> [EMAIL PROTECTED]
> 


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to