Skip to content

Glossary: Rust in Practice

primary key

Also written: PRIMARY KEY

A column whose value must differ in every row, such as `sku` in `products`. SQLite numbers an `INTEGER PRIMARY KEY` itself.

Where the book teaches it

Related terms

foreign key (REFERENCES)