Note that there can be multiple FOREIGN KEYS
on a table, with references to primary keys of multiple tables. Look at the following example, that creates another table grades
before creating students
, and then adds FOREIGN KEYS
for both grades
and courses
on students
table.