Both primary and unique keys enforce uniqueness of the column on which they are defined.
By default a primary key creates a clustered index on the column, where as unique key creates a non-clustered index by default.
Another major difference is that, primary key doesn’t allow NULL’s, but unique key can have one NULL value in it’s list of values.
Thanks for sharing this information. Really is pack with new knowledge. Keep them coming.
Clear and to the point explanation.Thanks for sharing this information.
Thanx for this valuable information