probleme création de table
Posté : 20 nov. 2006, 15:38
Bonjour,
Voila j'ai un souci, je n'arrive pas a rajouter de table dans mysql ni manuellement ni avec phpmyadmin. Cela m'écrit
#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 ') NOT NULL)' at line 6
Par exemple en fesant :
Je sais il n'y a pas de clé primaire, je l'ai fait exprès vu que cela ne marchais pas avec. Mais cela ne marche pas sans.
Merci d'avance
Voila j'ai un souci, je n'arrive pas a rajouter de table dans mysql ni manuellement ni avec phpmyadmin. Cela m'écrit
#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 ') NOT NULL)' at line 6
Par exemple en fesant :
Code : Tout sélectionner
CREATE TABLE stock_m(
CODE_MAT INT( 5 ) NOT NULL ,
NUM_ENT TINYINT( 1 ) NOT NULL ,
QUANTITE INT( 5 ) NOT NULL ,
PRIX_MOYEN DOUBLE( 5 ) NOT NULL
) Merci d'avance