CS1103/Labs/Lab6/5.sql

5 lines
133 B
MySQL
Raw Permalink Normal View History

2022-10-07 00:48:09 -03:00
ALTER TABLE Enrollments
ADD FOREIGN KEY(studentID)
REFERENCES Students(studentID)
ON DELETE NO ACTION
ON UPDATE CASCADE;