What does composite key mean?
In databases & SQL, composite key means a key made of two or more columns that identify a row only when used together, such as order ID plus product ID in an order items table.
Databases & SQL vocabulary · Keys and Constraints
In Turkish: bileşik anahtar
Also used in: Software Engineering
Type at least 2 characters to search all fields.
How it is used
Typical in junction tables for many-to-many relationships. Some teams prefer a simple surrogate id plus a unique constraint on the column pair, because composite keys make foreign keys and ORM mappings longer. Also called a compound or multi-column key.
Example sentences
The enrollments table uses a composite key of student_id and course_id.
Column order matters in a composite key because of the index behind it.
Common collocations
- composite primary key
- composite key of
- composite index
- multi-column key
Related terms
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:
