florence florence <[EMAIL PROTECTED]> wrote:
> 
>      Hope someone can guide me how to set the auto_increment for an integer and the 
> value start with 1000? 
>      I know how to set the value start from 1 but don't know how to start from 1000 
> or 2000 etc. Hope somebody can help me.
>    

For MyISAM table you can use AUTO_INCREMENT option in CREATE TABLE or ALTER TABLE 
statement:
        http://www.mysql.com/doc/en/CREATE_TABLE.html
        http://www.mysql.com/doc/en/ALTER_TABLE.html

If you use InnoDB tables, you should insert a dummy row with value wanted_value-1 (for 
example, 999) and then delete this row.


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [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/[EMAIL PROTECTED]

Reply via email to