← BYTES
Database·Starter·Ref: 13.1.7

What is a composite primary key?

Have a question about this video? Mention reference 13.1.7 when you contact us.

a.A key used only for encrypting a table
b.A primary key that automatically increments by a random amount
c.A primary key that can be changed after a row is inserted with no restrictions
d.A primary key made up of two or more columns together, where the COMBINATION of their values must be unique across rows, even if individual columns repeat
A composite (or compound) primary key uses two or more columns jointly as the uniqueness constraint -- e.g., in an order_items table, (order_id, product_id) together might form the primary key, where either column alone can repeat across rows, but the pair must be unique.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES1317#Database