Hi,
I have a table 'test'
+-+--+--+-+---
++
| Field | Type | Null | Key | Default |
Extra |
+-+--+--+-+---
++
| id | int(11) | NO |
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 d
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 wanted
> 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
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
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
: 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,
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
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, 20
January 30, 2003 2:15 PM
Subject: 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
&g
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:
http://www.mysql
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
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:
http://www.mysql.com/man
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
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:
http://www.mysql.com/manua
15 matches
Mail list logo