engineering computer science MCQ #717

What is the purpose of the PRIMARY KEY constraint in a database table?

engineering computer science MCQ #717

  1. Question 1

    Q1. What is the purpose of the PRIMARY KEY constraint in a database table?

    • A) To uniquely identify each row
    • B) To enforce data consistency
    • C) To improve query performance
    • D) To store data

    Answer: To uniquely identify each row

    Explanation: The PRIMARY KEY constraint uniquely identifies each row in a table, ensuring that no duplicate or null values are allowed.