Erreur my sql

willybaby Messages postés 104 Date d'inscription   Statut Membre Dernière intervention   -  
moderno31 Messages postés 872 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour, j'ai un petit soucis je tente une initiation à la programmation mais les débuts sont difficile, j'ai crée un modéle logique de donnée via windesign mais lorsque je génére le script pour mysql, voila ce qu'il m'affiche :


Erreur

requête SQL:

# -----------------------------------------------------------------------------
# TABLE : MATCH
# -----------------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS MATCH (
MATCH_CODE BIGINT( 6 ) NOT NULL ,
SAISON_CODE INTEGER( 4 ) NOT NULL ,
EQUI_CODECHAR( 3 ) NOT NULL ,
MATCH_DOMMCHAR( 2 ) NOT NULL ,
MATCH_EXTECHAR( 2 ) NOT NULL ,
PRIMARY KEY ( MATCH_CODE )
) COMMENT = "";

MySQL a répondu:Documentation
#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 'MATCH
(
MATCH_CODE BIGINT(6) NOT NULL ,
SAISON_CODE INTEGER(4) NOT NU' at line 1

J'ai cherché mais je n'ai toujours pas compris pourquoi cette erreur apparait

merci de votre aide



A voir également:

1 réponse

moderno31 Messages postés 872 Date d'inscription   Statut Membre Dernière intervention   92
 
Salut
Quand tu génères ton script tu as des trucs à lui préciser.
Il te génères du INTERGER qui n'existe pas sous mySQL il me semble.
C'est INT, MEDIUMINT, SMALLINT, BIGINT
Attention : MATCH_EXTECHAR( 2 ) NOT NULL est faux
Faut corriger MATCH_EXTE CHAR( 2 ) NOT NULL ,
0