J'ai un petit stress avec la requête que DBDesigner m'a faite
Code : Tout sélectionner
#
# Structure de la table ` promo_epreuve `
#
CREATE TABLE `promo_epreuve` (
`id_epreuve` INT NOT NULL AUTO_INCREMENT,
`epreuve` VARCHAR(20) NOT NULL,
`lieu` VARCHAR(255) NOT NULL,
`date_edition` DATETIME NULL DEFAULT `0000-00-00 00:00:00`,
`km` TINYINT (4) NOT NULL '0',
`acces` VARCHAR(255) NOT NULL,
`parking` VARCHAR(255) NOT NULL,
`secretariat` VARCHAR(255) NOT NULL,
`vestiaire` VARCHAR(255) NOT NULL,
`depart` VARCHAR(255) NOT NULL,
`arrivee` VARCHAR(255) NOT NULL,
`ravito` VARCHAR(255) NOT NULL,
`prix` VARCHAR(255) NOT NULL,
`info` TEXT NOT NULL,
`parcours` TEXT NOT NULL,
`itineraire` TEXT NOT NULL,
`banniere` VARCHAR(45) NOT NULL,
`parcours_img` VARCHAR(20) NOT NULL DEFAULT `defaut_img.jpg`,
`parcours_flash` VARCHAR(20) NOT NULL DEFAULT `defaut_fla.swf`,
`topographie` VARCHAR(20) NOT NULL,
`profil` VARCHAR(20) NOT NULL,
PRIMARY KEY(`id_epreuve`)
);MySQL a répondu:
#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 '0000-00-00 00:00:00` ,
`km` TINYINT( 4 ) NOT NULL '0',
`a
Si quelqu'un pouvait me filer un coup de main car je suis loin d'être une bête dans ce genre d'exercice!
Merci