fork download
  1. alter table matiere add constraint fk_matiere_enseignant foreign key matiere(id_enseignant) references enseignant(id_enseignant) on delete cascade;
  2. alter table inscription add constraint fk_inscription_etudiant foreign key inscription(id_etudiant) references etudiant(id_etudiant) on delete cascade;
  3. alter table note add constraint fk_note_etudiant foreign key note(id_etudiant) references etudiant(id_etudiant);
  4. alter table note add constraint fk_note_matiere foreign key note(id_matiere) references matiere(id_matiere);
  5.  
  6.  
Success #stdin #stdout #stderr 0.01s 5316KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error: near line 1: no such table: matiere
Error: near line 2: no such table: inscription
Error: near line 3: no such table: note
Error: near line 4: no such table: note