SQL - UniqueKeyConstraint - Page7
👉Unique Key Constraint
Difference between Unique and Primary Key:
Primary Key doesn't allow null values whereas unique column constraint permits multiple entries of null into the column. These null values are clubbed at the top of the column in the order in which they are entered into the table.
Features:
Unique key will not allow duplicate values.
Unique key can combine up to 16 columns in a composite unique key.
Unique index is created automatically.
Note: Constraints can be bound to a table or a column using the Create Table command or Alter Table command.
✅Unique constraint at column level
Comments
Post a Comment