Question:

Before the usage of .................. table command to add a primary key, one needs to make sure that the field is ...........

Show Hint

Ensure that the column you intend to use as a primary key does not allow NULL values before adding the primary key constraint.
Updated On: Apr 24, 2025
  • ALTER, NOT NULL
  • Create, NOT NULL
  • Update, NOT NULL
  • Update, NULL
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

To add a primary key to a table, the column used for the key must have unique values, and it must not allow NULL values. The ALTER command is used to modify a table, so the correct answer is ALTER with the constraint NOT NULL.
Was this answer helpful?
0
0

Questions Asked in CUET exam

View More Questions