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

Discussion

Which of the following is not true about indexes?

  • A.Indexes are created to enforce uniqueness on columns.
  • B.Indexes are created to enable fast retrieval by column values.
  • C.Columns that are frequently used with equal conditions in WHERE clauses are good candidates for indexes.
  • D.Indexes are created with the ALTER TABLE command.

Answer: D

Correct answer: Indexes are created with the ALTER TABLE command.

Indexes are created with CREATE INDEX, and a unique index is also created implicitly when a primary key or unique constraint is declared. ALTER TABLE modifies the table, not the indexes on it. The other three statements are correct: indexes enforce uniqueness, speed retrieval, and are most worthwhile on columns frequently tested for equality.

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

Post your comment

Please log in or register to post a comment.