Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

DBMS%20Interview%20Questions%20and%20Answers

Question: What’s the difference between DELETE and TRUNCATE?
Answer:
Following are difference between them: 
  • DELETE TABLE syntax logs the deletes thus making the delete operations low. TRUNCATE table does not log any information but it logs information about deallocation of data page of the table. So TRUNCATE table is faster as compared to delete table. 
  • DELETE table can have criteria while TRUNCATE can not. 
  • TRUNCATE table can not have triggers.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook