Machine-translated by Google. Questions are authored in English.
Top

Discussion

A primary key should be defined as:

  • A.NULL.
  • B.
    NOT NULL.
  • C.Either of the above can be used.
  • D.None of the above are correct.

Answer: B

Correct answer: NOT NULL.

A primary key identifies a row, and a null cannot identify anything, so every part of a primary key must be present in every row. The DBMS enforces this automatically when a primary key is declared, and entity integrity is the name given to the rule.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.