answersLogoWhite

0

In a Database Management System (DBMS), the TRUNCATE command is used to delete all rows from a table quickly and efficiently, without logging individual row deletions. Unlike the DELETE command, which can remove rows one at a time and can be rolled back, TRUNCATE cannot be rolled back and resets any auto-increment counters. It is typically faster because it bypasses the need to log each row's deletion and does not fire any DELETE triggers. However, it does not allow for a WHERE clause, meaning all data in the table is removed.

User Avatar

AnswerBot

1mo ago

What else can I help you with?