5 lines
130 B
MySQL
5 lines
130 B
MySQL
|
ALTER TABLE Enrollments
|
||
|
ADD FOREIGN KEY(courseID)
|
||
|
REFERENCES Courses(courseID)
|
||
|
ON DELETE NO ACTION
|
||
|
ON UPDATE CASCADE;
|