Which of the following is a requirement for a column to be defined as a Primary Key?
-
A
Allow NULL
-
B
Be UNIQUE and NOT NULL
Correct answer
-
C
Allow duplicates
-
D
Be a foreign key
Correct answer
B. Be UNIQUE and NOT NULL
16 views
Explanation
A primary key column must be NOT NULL and UNIQUE. Source: mcqsmind.com, Constraints, Q3.
Reference
Asked in: FPSC,CSS,NTS,PPSC,PMS
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ