What does a unique key constraint ensure in a database table?

  • Allows duplicate values
  • Enforces data uniqueness
  • Permits NULL values
  • Specifies data types
A unique key constraint in a database table ensures data uniqueness, meaning that no two records in the specified column or combination of columns can have the same values. It is similar to a primary key but does not necessarily represent the main identifier for the table.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *