CS1103/Labs/Lab6/4.sql

5 lines
130 B
MySQL
Raw Permalink Normal View History

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