SQL FOREIGN KEY Constraint
A FOREIGN KEY is a key in another table that relates from the PRIMARY KEY in the parent table. A Foreign Key is needed in the related table to connect data from the primary table.
Let's take a look at the following example
Course Table
| CourseID | Course |
| 1 | Math 101 |
| 2 | English 101 |
Students Table
- Read more about SQL FOREIGN KEY Constraint
- Log in or register to post comments
- 241 views