SQL (Structured Query Language) Question:

What is difference between TRUNCATE & DELETE?

Tweet Share WhatsApp

Answer:

TRUNCATE commits after deleting entire table i.e., cannot be rolled back. Database triggers do not fire on TRUNCATE
DELETE allows the filtered deletion. Deleted records can be rolled back or committed. Database triggers fire on DELETE.

Download SQL PDF Read All 172 SQL Questions
Previous QuestionNext Question
What is the parameter substitution symbol used with INSERT INTO command?What is SQL sub-query?