Bonjour,
voici une requête SQL :
Celle-ci génère un message d'erreur :
Code sql : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 CREATE TABLE country( COU_ident INT UNSIGNED AUTO_INCREMENT, country CHAR(3) NOT NULL, region CHAR(4) NOT NULL, PRIMARY KEY(COU_ident), UNIQUE(country) )sur la création d'une FK et pourtant aucune création de FK dans la requête. Pourquoi ça ?Error Code: 3734. Failed to add the foreign key constraint. Missing column 'id_country' for constraint 'location_ibfk_1' in the referenced table 'country'
Partager