Which SQL statement permanently removes a table's definition and all of its data from a relational database, making the table unrecoverable unless a backup is restored?
DROP TABLE deletes both the table structure and all associated rows, indexes, and constraints, freeing the storage space. Because the definition itself is removed, the table cannot be queried or restored except by loading a previous backup. DELETE FROM removes only selected rows (or all rows if no WHERE clause) but leaves the table intact. TRUNCATE TABLE quickly empties all rows but still preserves the table structure. ALTER TABLE … DROP COLUMN modifies an existing table by deleting a single column rather than the entire table.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the difference between the DROP statement and the DELETE statement?
Open an interactive chat with Bash
What is SQL and why is it important?
Open an interactive chat with Bash
What does it mean to backup a database and why is it necessary?