Major difference between DELETE DROP TRUNCATE commands
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Abhay ShankerRank #375 · 6.7K reputationPosted Nov 9, 2013, 10:02 PM EST
synatx:- DELETE FROM employee WHERE id = 1;
The DROP command removes a table from the database. All the tables' rows, indexes and privileges will also be removed. No DML triggers will be fired. The operation cannot be rolled back.
synatx:-DROP TABLE employee ;
TRUNCATE removes all rows from a table. The operation cannot be rolled back
syntax:-TRUNCATE TABLE employee ;
One another difference is, DROP and TRUNCATE are DDL commands, whereas DELETE is a DML command