Skip to main content

Create Composite Key in SQL

What is a composite key?

A composite key in SQL can be defined as a combination of multiple columns, which are used to identify all the rows involved uniquely. Even though a single column can't identify any row uniquely, a combination of over one column can uniquely specify any record.

How to create a composite key?



EG: 





Comments