Primary key
Meaning in software engineering, with examples
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
The primary key of the orders table is order_id.
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
Related terms
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:
