Verusche im PHPMyAdmin diesen code zu speichern. Krieg aber immer diesen Fehlermeldung...
#1060 - Duplicate column name 'id'
CODE:
CREATE TABLE test_user(
id int( 11 ) NOT NULL AUTO_INCREMENT ,
created datetime NOT NULL default '0000-00-00 00:00:00',
CHANGED datetime NOT NULL default '0000-00-00 00:00:00',
activ tinyint( 1 ) NOT NULL default '0',
BEGIN datetime NOT NULL default '0000-00-00 00:00:00',
END datetime NOT NULL default '0000-00-00 00:00:00',
user_id int( 11 ) NOT NULL default '0',
name varchar( 255 ) NOT NULL default '',
sort varchar( 255 ) NOT NULL default '',
descr text NOT NULL ,
email varchar( 255 ) NOT NULL default '',
admin tinyint( 4 ) NOT NULL default '0',
owner_id int( 11 ) NOT NULL default '0',
PASSWORD varchar( 255 ) NOT NULL default '',
PRIMARY KEY ( id, id ) ,
KEY name( name ) ,
KEY email( email ) ,
KEY password( PASSWORD )
) TYPE = MYISAM ;
Kann mir da jemand helfen. Habe Win XP Home mit XAMPP
Danke im vorraus
#1060 - Duplicate column name 'id'
CODE:
CREATE TABLE test_user(
id int( 11 ) NOT NULL AUTO_INCREMENT ,
created datetime NOT NULL default '0000-00-00 00:00:00',
CHANGED datetime NOT NULL default '0000-00-00 00:00:00',
activ tinyint( 1 ) NOT NULL default '0',
BEGIN datetime NOT NULL default '0000-00-00 00:00:00',
END datetime NOT NULL default '0000-00-00 00:00:00',
user_id int( 11 ) NOT NULL default '0',
name varchar( 255 ) NOT NULL default '',
sort varchar( 255 ) NOT NULL default '',
descr text NOT NULL ,
email varchar( 255 ) NOT NULL default '',
admin tinyint( 4 ) NOT NULL default '0',
owner_id int( 11 ) NOT NULL default '0',
PASSWORD varchar( 255 ) NOT NULL default '',
PRIMARY KEY ( id, id ) ,
KEY name( name ) ,
KEY email( email ) ,
KEY password( PASSWORD )
) TYPE = MYISAM ;
Kann mir da jemand helfen. Habe Win XP Home mit XAMPP
Danke im vorraus
Comment