Problème MySQL code

Fermé
Imillix Messages postés 38 Date d'inscription lundi 10 février 2014 Statut Membre Dernière intervention 26 février 2018 - 13 mars 2014 à 21:51
ElementW Messages postés 4816 Date d'inscription dimanche 12 juin 2011 Statut Contributeur Dernière intervention 5 octobre 2021 - 13 mars 2014 à 22:42
Bonjour,
j'ai un problème avec mon code SQL, quand je l'écrit, MySQL me retourne :

#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 ')' at line 6

Mon code :

CREATE TABLE membre (
	id int(11) NOT NULL auto_increment,
	login text NOT NULL,
	pass_md5 text NOT NULL,
	PRIMARY KEY  (id),
)
A voir également:

1 réponse

ElementW Messages postés 4816 Date d'inscription dimanche 12 juin 2011 Statut Contributeur Dernière intervention 5 octobre 2021 1 225
13 mars 2014 à 22:42
'lut, y'a une virgule en trop après
PRIMARY KEY  (id)
, vires la. Et hop, ça marche!
1