What is the difference between DELETE and TRUNCATE?

Answer Posted / p.rajasekar

Delete:
1.It is DML staement.
2.We can rollback the Data
3.We can apply Where condition.
4.Database triggers will fire on DELETE.
5.High water mark Model is not applied
Truncate:
1.It is a DDL statement
2.We cannot rollback
3.We can not apply Where condition
4.Database trigger will not fire
5.High water mark Model is applied

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is gpt format?

497


What are sql ddl commands?

537


Enlist the characteristics of pl/sql?

1231


What does bitemporal mean?

587


What is a record in a database?

553






What is raid? How does it help storage of databases?

594


what is cursor. write example of it. What are the attributes of cursor.

737


Is pl sql and postgresql same?

560


What are all the different normalization?

553


How exception is different from error?

533


Can dml statements be used in pl/sql?

567


What is the use of non clustered index?

522


What are the operators used in select statements?

566


What is constant in pl sql?

508


What is set serveroutput on?

635