IT lexicon Database Primary key

Primary key

Database På svenska → Updated: 2026-05-23

Column (or combination) that uniquely identifies every row in a table.

Classic: auto-incrementing int. Modern: UUID/ULID/snowflake (better for distributed systems, no collisions between shards). Can never be NULL. Indexed automatically. Foreign keys in other tables point here.

← Back to the lexicon