In DB2, what is the significance of primary keys in tables?

  • They allow NULL values in the column
  • They automatically create indexes
  • They define the order of the rows
  • They ensure uniqueness of each row
Primary keys in DB2 tables play a crucial role in ensuring the uniqueness of each row. They enforce entity integrity by ensuring that no two rows have the same values in the specified column or combination of columns. This uniqueness constraint helps maintain data accuracy and consistency. 
Add your answer
Loading...

Leave a comment

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