← BYTES
Database·Starter·Ref: 13.1.6
What does a UNIQUE constraint on a column enforce?
Have a question about this video? Mention reference 13.1.6 when you contact us.
a.That the column can never be NULL
b.That the column must contain only numbers
c.That no two rows can have the same value in that column
d.That the column is automatically indexed for full-text search
A UNIQUE constraint guarantees every value in that column (across all rows) is distinct -- unlike a PRIMARY KEY, a column with a UNIQUE constraint can still allow NULL values (and typically allows multiple NULLs, since NULL is not considered equal to another NULL for uniqueness purposes in most engines).
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#BYTES1316#Database