"Fandango del Morro" <[EMAIL PROTECTED]> wrote: > > Hello, > I'm new in this list and I also a newbie with MySql. I have a big problem > with autoincrementing with an initial value. For example: > > use Database Business; > create Table Clients(Client_ID int not null primary key auto_increment=10, > Full_Name varchar(30)); > > Each time I assign an initial value to auto_increment I get an error and > worse, the MySql server only tell me there is an error, it doesn't tell me > what kind of error is. > > I tried at leat 30 times before writing this message. I really unable to > solve this problem. auto_increment=n is an accepted syntax and it is > documented in all sql books. > > Can you explain me why I have this problem?
It's not a correct syntax. If you want to specify initial value of auto_increment column, you can do it like: CREATE TABLE Clients( .... ) AUTO_INCREMENT=10; -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]