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

How do I view output in sql developer?

578


What is trigger types in sql?

535


What is trigger and stored procedure in sql?

558


What is %s in sql?

564


give the syntax of grant and revoke commands? : Sql dba

616






What is an intersect?

654


What is the difference between explicit and implicit cursors in oracle?

516


What are procedures used for?

529


What is sql deadlock?

565


what is sql profiler? : Sql dba

590


what are date and time data types in mysql? : Sql dba

502


What is difference between nchar and nvarchar?

542


Explain polymorphism in pl/sql.

641


What is file based approach?

491


Why do we use joins?

568