List:General Discussion« Previous MessageNext Message »
From:David Christian Date:April 9 1999 2:39am
Subject:Re: auto_increment problem
View as plain text  
On 4/9/99, at 2:36 AM, Nathan Feger wrote: 

>I'm having a major difficulty with the auto_increment feature.  It seems
>that if the number of digits changes in the auto_increment field I get
>problems.  Say I do ten inserts on a table all subsequent inserts will
>respond with:
>ERROR 1062: Duplicate entry '10' for key 1 
>here is a table definition.
>CREATE TABLE site_params (
>  id varchar(10) DEFAULT '' NOT NULL auto_increment,

I think in the docs it says that the auto_increment field must be int,
not char.  I had this problem one time and looked it up in the docs.
Changed the id field to integer and that solved it.



auto_increment problemNathan Feger9 Apr
  • Re: auto_increment problemThimble Smith9 Apr
  • Re: auto_increment problemDavid Christian9 Apr