Skip
Arish's avatar

262. Multiple Foreign Keys


Multiple FKs

sql
1CREATE TABLE enrollments (
2  student_id INTEGER,
3  course_id INTEGER,
4  FOREIGN KEY (student_id) REFERENCES students(id),
5  FOREIGN KEY (course_id) REFERENCES courses(id)
6);