Erreur SQL !
Posté : 29 déc. 2006, 20:12
Salut,
N'étant pas un pro de la requête, je me tourne vers vous pour avoir une info !
J'ai une requête toute simple :
mais une méga erreur que je n'arrive pas à déchiffrer :
Merci
N'étant pas un pro de la requête, je me tourne vers vous pour avoir une info !
J'ai une requête toute simple :
Code : Tout sélectionner
CREATE TABLE IF NOT EXISTS `jos_cat` (
`id` INT NOT NULL default '0',
`user_id` INT NOT NULL default '0',
`recup_id` INT NOT NULL default '0',
`date` DATE NOT NULL default '0000-00-00',
`fc1` SMALLINT(3) UNSIGNED NULL,
`fc2` SMALLINT(3) UNSIGNED NULL,
`fcmax` SMALLINT(3) UNSIGNED NULL,
`fcrecup` SMALLINT(3) UNSIGNED NULL,
`fcca` SMALLINT UNSIGNED NULL,
`tica1000` TIME NOT NULL default '00:00:00',
`PRIMARY` KEY (`id`)
) TYPE=MyISAM;Qui peut m'aider ?SQL Error DB function failed with error number 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'KEY (`id`) ) TYPE=MyISAM' at line 15 SQL=CREATE TABLE IF NOT EXISTS `jos_cat` ( `id` INT NOT NULL default '0', `user_id` INT NOT NULL default '0', `recup_id` INT NOT NULL default '0', `date` DATE NOT NULL default '0000-00-00', `fc1` SMALLINT(3) UNSIGNED NULL, `fc2` SMALLINT(3) UNSIGNED NULL, `fcmax` SMALLINT(3) UNSIGNED NULL, `fcrecup` SMALLINT(3) UNSIGNED NULL, `vo2max` INTEGER UNSIGNED NULL, `fcca` SMALLINT UNSIGNED NULL, `tica1000` TIME NOT NULL default '00:00:00', `PRIMARY` KEY (`id`) ) TYPE=MyISAM;
Merci