Foreign-key constraint

A FOREIGN KEY in one table points to a PRIMARY KEY in another table.
It is also called a referencing key.
Foreign Key is a column or a combination of columns whose values match a Primary Key in a different table.

examples:-

Advertisements