Setting auto increment value in an update statement

2009-03-31 Thread Andreas Pardeike
Hi, I have a table 'test' +-+--+--+-+--- ++ | Field | Type | Null | Key | Default | Extra | +-+--+--+-+--- ++ | id | int(11) | NO

using MyAdmin to build the MySql-Having trouble setting auto-increment for primary key

2005-04-14 Thread Dana Terrell
I am new to MySql and I am having troubles getting the primary keys to do what I want. Here is the situation. I am building a database where there are 2 types of users that can access and change information. Because each type of user will be accessing a different part of the database, I

Re: using MyAdmin to build the MySql-Having trouble setting auto-increment for primary key

2005-04-14 Thread gerald_clark
Dana Terrell wrote: I am new to MySql and I am having troubles getting the primary keys to do what I want. Here is the situation. I am building a database where there are 2 types of users that can access and change information. Because each type of user will be accessing a different part of the

Setting auto increment back to zero after it reaches it limit

2003-09-04 Thread Brenda Cooney
Hi - 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). Does anyone know how I can do this ? I basically need functionality similar to Oracle

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 (a

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: setting auto increment start value

2003-01-31 Thread Bhavin Vyas
: setting auto increment start value 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

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

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, :

setting auto increment start value

2003-01-30 Thread 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 -- - Before posting, please check:

setting auto-increment to start at higher number

2002-12-02 Thread rdkurth
How can I set auto-increment in mysql to start counting at say 5 rather than 1 -- Best regards, rdkurthmailto:[EMAIL PROTECTED] - Before posting, please check:

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 -- For

Setting Auto Increment

2002-05-31 Thread Arul
Hi All Is it that i can make a column auto increment only if its data type is integer. Can i not set auto increment value for a numeric datatype -Arul sql,query - Before posting, please check: