Bonjour tout le monde,
Voila je n'arrive pas a créer une table en MySQL sur PhpMyAdmin : j'ai toujours l'erreur 1064 a la fin. Je ne comprends pas d'où elle vient.
Voici les instructions:
1 2 3 4 5 6 7 8
| CREATE TABLE produit(
id INT PRIMARY KEY AUTO_INCREMENT,
nom VARCHAR,
description TEXT,
categorie INT,
prix FLOAT,
CONSTRAINT FOREIGN KEY (categorie) REFERENCES categorie(id)
); |
MySQL a répondu :
Documentation
#1064 - Erreur de syntaxe près de '
description TEXT,
categorie INT,
prix FLOAT,
CONSTRAINT ...' à la ligne 3
Comment puis-je résoudre le problème ?
Merci d'avance.
Partager