« Programmation SQL/Exemples » : différence entre les versions

Contenu supprimé Contenu ajouté
Alq666 (discussion | contributions)
Alq666 (discussion | contributions)
Ligne 61 :
mot_cle_sid integer not null
);
 
Même traitement pour éviter les mots-clés inexistants attachés à des images inexistantes :
alter table image_mot_cle add constraint image_mot_cle_mot_cle_fk
foreign key (mot_cle_sid) references mot_cle(sid);
alter table image_mot_cle add constraint image_mot_cle_image_fk
foreign key (image_sid) references image(sid);
 
==== Exemples de requête ====