From: Daevid Vincent Date: June 26 2003 12:04am Subject: RE: Setting default auto_increment start int List-Archive: http://lists.mysql.com/mysql/143720 Message-Id: <001801c33b76$8bcca450$a40aa8c0@gabriel> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable 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.=20 > -----Original Message----- > From: Egor Egorov [mailto:egor.egorov@stripped]=20 > Sent: Wednesday, June 25, 2003 3:50 AM > To: mysql@stripped > Subject: Re: Setting default auto_increment start int >=20 >=20 > "Javan B." wrote: > >=20 > > Just a quick question: How do I set the auto increment > > for a field to start from an integer other than 1. > >=20 > > For example, I would like to be able to have the auto > > increment counter start from 1000. > >=20 >=20 > Use AUTO_INCREMENT option of CREATE TABLE statement: > http://www.mysql.com/doc/en/CREATE_TABLE.html >=20 >=20 >=20 > --=20 > For technical support contracts, goto=20 > https://order.mysql.com/?ref=3Densita > This email is sponsored=20 > by Ensita.net http://www.ensita.net/ > __ ___ ___ ____ __ > / |/ /_ __/ __/ __ \/ / Egor Egorov > / /|_/ / // /\ \/ /_/ / /__ Egor.Egorov@stripped > /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net > <___/ www.mysql.com >=20 >=20 >=20 >=20 > --=20 > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: =20 > http://lists.mysql.com/mysql?> unsub=3Ddaevid@stripped >=20