Skip to content

Glossary: Rust in Practice

foreign key (REFERENCES)

Also written: REFERENCES, foreign key

A SQL column that must match an id in another table. In `items`, each `receipt_id` must be the id of a row in `receipts`.

Where the book teaches it

Related terms

primary key