What is difference between TRUNCATE & DELETE?

Answer Posted / rampratap singh

Truncate is DDL so it does not create rollback segments,

where as DELETE is DML and creates rollback segments.

Truncate removes/reset the high watermark.
Delete does not do that.

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is full join?

525


Is vs as in pl sql?

487


Explain select statements in sql?

582


what happens if you no create privilege in a database? : Sql dba

527


What is the purpose of the partition table?

540






What is coalesce in sql?

555


What does desc stand for?

588


what are local and global variables and their differences? : Sql dba

530


What is scope and visibility in PL/SQL?

592


How do I count duplicates in sql?

541


What does stand for in sql?

520


how many ways we can we find the current date using mysql? : Sql dba

610


What is the difference between stored procedure and view?

526


how many triggers are allowed in mysql table? : Sql dba

554


How to find 3rd highest salary of an employee from the employee table in sql?

562