You are here: problem with auto_increment « MySQL Databases « IT news, forums, messages
problem with auto_increment

Posted by Jaceq on 12/31/05 14:13

Hello!
I'm trying to do query:
CREATE TABLE gracze (
nr NUMERIC NOT NULL AUTO_INCREMENT,
login VARCHAR(40),
sila NUMERIC(4),
zrecznosc NUMERIC(4),
wytrzymalosc NUMERIC(4),
wiedza NUMERIC(4),
nr_etapu NUMERIC(3) NOT NULL,
PRIMARY KEY (nr, nr_etapu),
KEY IDX_gracze1(nr_etapu)
);
And it doesn't work :(
I got error:
#1063 - Incorrect column specifier for column 'nr'

I know the "auto_increment" is the problem here, but I don't know why
(if I erase auto_increment option it works fine), I really need auto
increment at this point, does any one know what is going on?
I'm using MySQL 4.1.16 (from FC4)
Please help

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация