-
DELETE
→ removes rows (can useWHERE
).TRUNCATE
→ removes all rows (faster, cannot useWHERE
).DROP
→ deletes the whole table structure.
DELETE FROM Employees WHERE id=5; -- removes one row
TRUNCATE TABLE Employees; -- removes all rows
DROP TABLE Employees; -- deletes table completely
Leave a Reply