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

Discussion

Which of the following is valid SQL for an Index?

  • A.CREATE INDEX ID;
  • B.CHANGE INDEX ID;
  • C.ADD INDEX ID;
  • D.REMOVE INDEX ID;

Answer: A

Correct answer: CREATE INDEX ID;

CREATE INDEX is the statement that builds an index, following the same CREATE pattern as tables and views - in full, CREATE INDEX name ON table (column).

An index is a separate structure that lets the engine find rows by a column's value without scanning the whole table, at the cost of space and of slower writes, since every insert and update must maintain it. The counterpart is DROP INDEX. CHANGE, ADD and REMOVE are not SQL statements in their own right.

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

Post your comment

Please log in or register to post a comment.