List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:July 21 2002 1:25am
Subject:Re: Auto_Increment Starting Number
View as plain text  
In the last episode (Jul 20), PathFinder Software said:
> What is the syntax for starting an Auto_Increment at a certain value
> like 1500 for example?
> I have tried this string but MySQL gives me an error.
> CREATE TABLE Test (TestID int not null auto_increment auto_increment = 1500,Year
> INT,Month INT,Day INT,Name VARCHAR(50));

CREATE TABLE test ( ... ) AUTO_INCREMENT = 1500;
> Also can an auto_increment value contain characters like 1500AB?

Nope.  Just integer values.

	Dan Nelson
Auto_Increment Starting NumberPathFinder Software21 Jul
  • Re: Auto_Increment Starting NumberDan Nelson21 Jul
    • RE: Auto_Increment Starting NumberPathFinder Software21 Jul