Skip to content
Sign in
Computer

In SQL, which command is used to remove all rows from a table without deleting the table structure?

Tap an option to check the answer. You can also press A–D.

Explanation
TRUNCATE removes all rows from a table but keeps the table structure intact. It is faster than DELETE because it does not log individual row deletions. DELETE can remove specific rows and can be rolled back. DROP deletes the entire table structure and data. REMOVE is not a valid SQL command.