Bonjour,
j'essaye de recréer ma base de données, mais je n'arrive plus à créer certaines tables. Je ne comprend pas d'où vient l'erreur.
Voici par exemple le code d'une des bases :
<!--StartFragment -->
CREATE TABLE styleColl(
refColl VARCHAR(10) FOREIGN KEY ( collection.refColl ) ,
refStyle VARCHAR(10) FOREIGN KEY ( style.refStyle ) ,
CONSTRAINT prim_styleColl PRIMARY KEY ( refStyle, refColl )
)
Bien sur, j'ai déjà créé la table style et collection...
Quelqu'un voit où est mon erreur sachant que Mysql me répond : <!--StartFragment -->
#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 'FOREIGN KEY(collection.refColl),
refStyle VARCHAR(10) FOREIGN