What is a primary key?

SQL keys and table design · Freshers

Model answer

A column (or set of columns) that uniquely identifies each row. It cannot be NULL and cannot repeat. A table has one primary key. It is automatically indexed, and many tables use an auto-incrementing integer or a UUID.

Learn this topic

Keys and Table Design: Why Data Is Split Into Tables in the course SQL for Beginners: Learn Databases Step by Step.

Sign in to add your own answer.

More questions