What does primary key mean?
In databases & SQL, primary key means a column, or a set of columns, whose value uniquely identifies each row in a table.
Databases & SQL vocabulary · Keys and Constraints
It cannot be empty and no two rows can share it.
In Turkish: birincil anahtar, PK
Also used in: Software Engineering
Type at least 2 characters to search all fields.
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: Keys and Constraints
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
