CS FundamentalsEasyWipro · Cognizant technical pattern

Which SQL command removes a table completely — its rows, its structure and its definition in the catalogue?

  1. A. DELETE FROM
  2. B. TRUNCATE TABLE
  3. C. ALTER TABLE … REMOVE
  4. D. DROP TABLE

Correct answer: D. DROP TABLE

DROP TABLE deletes the table object itself. DELETE and TRUNCATE remove rows but keep the empty table; there is no ALTER TABLE … REMOVE command.

More DBMS and SQL questions

Exams that ask this topic