DELETE all rows
suggest changeOmitting a WHERE clause will delete all rows from a table.
DELETE FROM Employees
See TRUNCATE for why it can be faster: it does not fire DELETE triggers, and many engines log page deallocation instead of each removed row. Indexes are emptied too; they are not left unchanged.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents