Bobby,

On Wed, Jun 05, 2002 at 01:49:50PM +0200, Bobby Oswald wrote:
> Removed all the negative values and the same problem still occurs
> 

Did you re-create the table with the queries that were shown in your
first mail (except the negative values of course)?  MyISAM tables
remember their latest auto_increment ID. I believe there is also a
command you can use to reset the auto_increment ID, but you would
still need to take care to not insert negative values.

Regards,

Fred.

> > -----Original Message-----
> > From: Fred van Engen [mailto:[EMAIL PROTECTED]] 
> > Sent: 05 June 2002 12:50
> > To: [EMAIL PROTECTED]
> > Subject: Re: Problem when inserting a record - auto_increment 
> > field gets max integer value instead of next id
> > 
> > 
> > Bobby,
> > 
> > On Wed, Jun 05, 2002 at 12:30:17PM +0200, Bobby Oswald wrote:
> > > I have a database with the following table and data:
> > > 
> > > When I add a new record the auto_increment number becomes 
> > '2147483647' 
> > > not sure why? Checked the SHOW TABLE STATUS too and this shows that 
> > > the next auto_increment number will be '2147483647' anyone know why?
> > > 
> > > INSERT INTO `ACCategories` VALUES (-1, 'Category not required', 2); 
> > > INSERT INTO `ACCategories` VALUES (-2, 'Important Message for All', 
> > > 2);
> > 
> > Don't use negative values for auto_increment columns.
> > 
> > 
> > Regards,
> > 
> > Fred.
> > 
> > 
> > PS: filter, filter, are you there? (sql, query)
> > -- 
> > Fred van Engen                              XO Communications B.V.
> > email: [EMAIL PROTECTED]             Televisieweg 2
> > tel: +31 36 5462400                         1322 AC  Almere
> > fax: +31 36 5462424                         The Netherlands
> > 
> > ---------------------------------------------------------------------
> > Before posting, please check:
> >    http://www.mysql.com/manual.php   (the manual)
> >    http://lists.mysql.com/           (the list archive)
> > 
> > To request this thread, e-mail <[EMAIL PROTECTED]>
> > To unsubscribe, e-mail 
> > <[EMAIL PROTECTED]>
> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> > 
> > 

-- 
Fred van Engen                              XO Communications B.V.
email: [EMAIL PROTECTED]             Televisieweg 2
tel: +31 36 5462400                         1322 AC  Almere
fax: +31 36 5462424                         The Netherlands

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to