Hi,
I have a table 'test'
+-+--+--+-+---
++
| Field | Type | Null | Key | Default |
Extra |
+-+--+--+-+---
++
| id | int(11) | NO
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
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
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
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
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
: 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
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
: 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,
:
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:
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:
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
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
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:
14 matches
Mail list logo