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

Discussion

SQL Server automatically creates an index on all primary and foreign keys.

  • A.True
  • B.False

Answer: A

Correct answer: True

A unique index on the primary key is created automatically because the uniqueness must be enforced somehow, and foreign keys are indexed as well. The foreign key index is what makes joins to the parent efficient and what allows referential integrity to be checked without scanning the child table.

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

Post your comment

Please log in or register to post a comment.