Data & Databases

Foreign Key

A database constraint linking stored values to a referenced key. It helps prevent orphaned relationships, such as an order pointing to a nonexistent customer. Nullability and deletion behavior are separate design choices.

Reviewed

Sources

Free complete lesson

This definition and the complete practical lesson are free. The interactive reader loads the lesson examples without a membership.

Find the free complete lesson

Explore all dictionary definitions