Re: Auto Increment Problem

2009-12-05 Thread Victor Subervi
Oops. Never mind. V On Sat, Dec 5, 2009 at 1:19 PM, Victor Subervi wrote: > Hi; > > mysql> insert into categories (Category, Parent) values ('test', NULL); > ERROR 1062 (23000): Duplicate entry '0' for key 1 > mysql> describe categories; > +--+-+--+-+-+

Auto Increment Problem

2009-12-05 Thread Victor Subervi
Hi; mysql> insert into categories (Category, Parent) values ('test', NULL); ERROR 1062 (23000): Duplicate entry '0' for key 1 mysql> describe categories; +--+-+--+-+-+---+ | Field| Type| Null | Key | Default | Extra | +--+

Re: Custom Auto-Increment Problem

2004-09-23 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, "Dan Tappin" <[EMAIL PROTECTED]> writes: >> -Original Message- >> From: Harald Fuchs >> Sent: Wednesday, September 22, 2004 9:39 AM >> To: [EMAIL PROTECTED] >> Subject: Re: Custom Auto-Increment Proble

RE: Custom Auto-Increment Problem

2004-09-22 Thread Dan Tappin
> -Original Message- > From: Harald Fuchs > Sent: Wednesday, September 22, 2004 9:39 AM > To: [EMAIL PROTECTED] > Subject: Re: Custom Auto-Increment Problem > > The only difference is when you delete rows inbetween. In this case > id_calc will be less than id.

Re: Custom Auto-Increment Problem

2004-09-22 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, "Dan Tappin" <[EMAIL PROTECTED]> writes: > Actually it's not a total and can't be calculated. > The idea is that as users (with individual id_client keys) add rows the id of the > row is auto incremented for their key only. > Example: > If user A adds 3 rows: > i

RE: Custom Auto-Increment Problem

2004-09-22 Thread Dan Tappin
: news [mailto:[EMAIL PROTECTED] Behalf Of Harald Fuchs > Sent: Wednesday, September 22, 2004 3:24 AM > To: [EMAIL PROTECTED] > Subject: Re: Custom Auto-Increment Problem > > > In article <[EMAIL PROTECTED]>, > "Dan Tappin" <[EMAIL PROTECTED]> writes: &g

Re: Custom Auto-Increment Problem

2004-09-22 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, "Dan Tappin" <[EMAIL PROTECTED]> writes: > Hi Shawn, > First off thanks for the tip. I had read that page once already but after reading > twice again after your post I realized that the > answer was right there. Wrapping that concept around my brain really hurt

RE: Custom Auto-Increment Problem

2004-09-21 Thread Dan Tappin
ure newbie out there. Thanks again, Dan T -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 1:29 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Custom Auto-Increment Problem Read this: http://dev.mysql.com/doc/mysql/

Re: Custom Auto-Increment Problem

2004-09-21 Thread SGreen
Read this: http://dev.mysql.com/doc/mysql/en/example-AUTO_INCREMENT.html and post the SHOW CREATE TABLE for your projects table if that didn't answer your question. Thanks! Shawn Green Database Administrator Unimin Corporation - Spruce Pine "Dan Tappin" <[EMAIL PROTECTED]> wrote on 09/21/2004

Custom Auto-Increment Problem

2004-09-21 Thread Dan Tappin
I am trying to create a table (projects) with the following basic column structure: id (primary key) id_client id_clientkey The ideas is that I will fill it with data like this: table: projects id id_client id_clientkey - 1 1 1 2

Re: auto increment problem

2002-02-25 Thread Rodney Broom
From: Chetan Lavti <[EMAIL PROTECTED]> > 1. When I am inserting the values and the Query fails, the increment > should not took place and It doesn't. > 2. When I delete a particular row from the table there should not be any > gap in the auto increment sequence. This doesn't work. Although y

Re: auto increment problem

2002-02-25 Thread Paul DuBois
At 0:44 +0530 2/26/02, Chetan Lavti wrote: >hi, >I creating a table where I am using one field as Auto Increment. I want >to know two things or rather I want to do to thinks for the same column > >1. When I am inserting the values and the Query fails, the increment >should not took place and >2. W

RE: auto increment problem

2002-02-25 Thread Rick Emery
: auto increment problem hi, I creating a table where I am using one field as Auto Increment. I want to know two things or rather I want to do to thinks for the same column 1. When I am inserting the values and the Query fails, the increment should not took place and 2. When I delete a particular row

auto increment problem

2002-02-25 Thread Chetan Lavti
hi, I creating a table where I am using one field as Auto Increment. I want to know two things or rather I want to do to thinks for the same column 1. When I am inserting the values and the Query fails, the increment should not took place and 2. When I delete a particular row from the table ther