PDA

View Full Version : help me please


deepdark
04-25-2003, 09:40 PM
i want to install this hack https://vborg.vbsupport.ru/showthread.php?s=&threadid=16182&highlight=photo+album


but my sql query says this:
SQL-query :

CREATE TABLE descr(

id int( 11 ) DEFAULT '0' NOT NULL auto_increment,
name varchar( 255 ) NOT NULL ,
descr text NOT NULL ,
seclevel int( 11 ) DEFAULT '0' NOT NULL ,
PRIMARY KEY ( name )
)

MySQL said:


Incorrect table definition; There can only be one auto column and it must be defined as a key
Back



any help please.........

filburt1
04-25-2003, 10:24 PM
You can't have an auto_increment and a primary key on a different column, I guess.