Discussion Locked

SQL Server

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Difference Between Primary Key and Unique Constraints. y Primary key is using offen and y not Unique constraint.

1 reply

by tony hopkinson

Primary Keys are clustered Unique are not.

Primary keys can only be put on NOT NULL columns, you can build a Unique key on a nullable column, but bear in mind because it's unique, you can only have one null in the table at a time, so that particular facility is of limited value.

This discussion is closed to new replies.