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

Discussion

Change Staff table by removing default of Assistant for position column

  • A.ALTER TABLE Staff ALTER position DROP DEFAULT;
  • B.ALTER TABLE Staff ALTER position DEFAULT;

  • C.ALTER TABLE Staff ALTER DROP DEFAULT;
  • D.MODIFY Staff ALTER position DROP DEFAULT;

Answer: A

Correct answer: ALTER TABLE Staff ALTER position DROP DEFAULT;

Removing a default is a change to the column, so the statement is ALTER TABLE, then ALTER on the named column, then DROP DEFAULT. Omitting the column name leaves the clause with nothing to act on, and MODIFY is not the keyword that begins the statement.

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

Post your comment

Please log in or register to post a comment.