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

Discussion

The command to remove rows from a table 'CUSTOMER' is:

  • A.REMOVE FROM CUSTOMER .
  • B.DROP FROM CUSTOMER .
  • C.DELETE FROM CUSTOMER WHERE .
  • D.UPDATE FROM CUSTOMER .

Answer: C

Correct answer: DELETE FROM CUSTOMER WHERE .

DELETE FROM removes rows, and the WHERE clause decides which. Omitting the clause is legal and empties the whole table, which is why writing the WHERE first is a habit worth having.

DROP destroys the table itself, structure and all, so it belongs to the data definition language rather than to row manipulation. UPDATE changes values in rows that remain. REMOVE is not SQL. Note that DELETE leaves the empty table in place, ready for new rows.

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

Post your comment

Please log in or register to post a comment.