How does a composite key differ from a single-column key in a database?

  • Composite key and Single-column key are identical
  • Composite key is made up of multiple columns, Single-column key uses only one column
  • Composite key is used for foreign key relationships, Single-column key is not
  • Single-column key is made up of multiple columns, Composite key uses only one column
A composite key consists of multiple columns to uniquely identify a record, whereas a single-column key uses only one column for this purpose. Composite keys are often used when a single column cannot guarantee uniqueness.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *