Difference between DROP and TRUNCATE
DROP TRUNCATE
In the drop table data and its definition is deleted with It preserves the structure of the table for
their full structure. further use exist but deletes all the data.
Drop is used to eliminate existing complications and
Truncate is used to eliminate the tuples
fewer complications in the whole database from the
from the table.
table.
Integrity constraints get removed in the DROP Integrity constraint doesn’t get removed
command. in the Truncate command.
Since the structure does not exist, the View of the Since the structure exists, the View of the
table does not exist in the Truncate command. table exists in the Truncate command.
Drop query frees the table space complications from This query does not free the table space
memory. from memory.
It is fast as compared to the DROP
It is slow as there are so many complications
command as there are fewer
compared to the TRUNCATE command.
complications.