Difference between TRUNCATE and DELETE? - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
Difference between TRUNCATE and DELETE?

Difference between TRUNCATE and DELETE?

Difference between TRUNCATE and DELETE?


Delete and Truncate


1) Delete is a DML Command while as Truncate is a DDL Command

2) Delete locks  table row while as Truncate locks the entire table

3) We can use "where condition" with delete while as we can't user "where
condition" with Truncate

4) DML Trigger fired during the delete while as DML Trigger doesn't fire during the Truncate

5) We can rollback delete operation while as we can't rollback Truncate operation

About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.