Question:

Which of the following commands is used to delete all rows and free up space from a table?

Show Hint

Use TRUNCATE when you need to quickly delete all rows and free up space. It's faster and more efficient than DELETE.
Updated On: Jun 16, 2025
  • Drop
  • Delete
  • Truncate
  • Alter
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The TRUNCATE command is used to delete all rows from a table, freeing up space by deallocating the space used by the table. Unlike the DELETE command, TRUNCATE does not log individual row deletions, making it faster for large tables. Drop and Alter are used for removing tables or altering table structure.
Was this answer helpful?
0
0