Software Engineering vocabulary · Databases and Persistence

Primary key

Meaning in software engineering, with examples

/ˈpraɪmɛri kiː/nounCore term

In software engineering, primary key means: A column, or a set of columns, whose value uniquely identifies each row in a table. It cannot be empty and no two rows can share it.

In Turkish: birincil anahtar, PK

How it is used

Every well-designed table has exactly one primary key, often an id column. People shorten it to PK in diagrams and chat. You define, add or change a primary key; a 'duplicate key' error means you tried to insert a value that already exists.

Example sentences

  1. The primary key of the orders table is order_id.

  2. The import failed with a primary key violation, so some IDs must already exist.

Common collocations

  • define a primary key
  • primary key column
  • primary key violation
  • composite primary key

This word in other fields

The same English word can have a different meaning in another field:

More terms: Databases and Persistence

Practise with graded reading

Reading at the right level is the fastest way to make new words stick. Pick free English books by level: