Re: Setting auto increment back to zero after it reaches it limit

2003-09-04 Thread Alec . Cawley
> I'm using InnoDB tables. I've set one of my fields to auto increment. > This field has a relationship with another table. I need to > reset auto increment back to 1 after it reaches the max value (And it will). A you sure about that last? If you use BIGINT (63 bits), at 1000 inserts per second

RE: setting auto increment start value

2003-02-01 Thread Nasser Ossareh
This actually is more tricky than it sounds. Firstly the table already exists. So create table is an option only if you were going to recreate a new table with an auto_increment column, then move the rest of the data (except for the index column) in to the new table, drop the old table and re-n

RE: setting auto increment start value

2003-01-31 Thread Sherzod Ruzmetov
: Am Donnerstag, 30. Januar 2003 20:15 schrieb Mike Doanh Tran: : > Hi all, : > : > I am creating a new table with an auto_increment primary key. : > How do i tell mysql to start incrementing at a certain : value, let say : > 1000 instead of 1? : > : > Thanks,

Re: setting auto increment start value

2003-01-31 Thread Christian Kohlschütter
Am Donnerstag, 30. Januar 2003 20:15 schrieb Mike Doanh Tran: > Hi all, > > I am creating a new table with an auto_increment primary key. > How do i tell mysql to start incrementing at a certain value, let say > 1000 instead of 1? > > Thanks, > > MT SET INSERT_ID=1000 does it. Have a look at http

Re: setting auto increment start value

2003-01-31 Thread Jason Brooke
At a guess, I'd set the default value to 1000 so the first record you insert has 1000 as it's value, then it will continue on from there. - Original Message - From: "Mike Doanh Tran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 31, 2003 5:15 AM Subject: setting auto

Re: setting auto increment start value

2003-01-31 Thread Bhavin Vyas
>From postings at: http://www.mysql.com/doc/en/example-AUTO_INCREMENT.html ALTER TABLE tbl_name AUTO_INCREMENT = 1000 will start your records at 1000 Bhavin. - Original Message - From: "Mike Doanh Tran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 30, 2003 2:15 PM S

Re: setting auto-increment to start at higher number

2002-12-02 Thread DL Neil
RD, > How can I set auto-increment in mysql to start counting at say 5 rather > than 1 The manual is your friend. Enter auto_increment into the search facility. Read 6.5.3 CREATE TABLE Syntax - which illustrates the answer, or move on to the better description in the next 'hit' 6.5.4 ALTER

Re: Setting Auto Increment

2002-06-03 Thread Victoria Reznichenko
Arul, Saturday, June 01, 2002, 8:34:40 AM, you wrote: A> Is it that i can make a column auto increment only if its data type is A> integer. A> Can i not set auto increment value for a numeric datatype You can set up AUTO_INCREMENT attribute for all int's and float's types. A> -Arul -- F