What is Difference Between delete and Truncate?

Answer Posted / shivaindu

Differentiate between TRUNCATE and DELETE:
-----------------------------------------
TRUNCATE deletes much faster than DELETE
TRUNCATE HAS NO CONDITION CLAUSE. WHERE AS DELETE HAS CONDITION.

Delete
~~~~~~
1> Executes triggers
2> DML statement
3> Roll back possible
4> Flash query can get the data
5> cannot free the table free space

Truncate
~~~~~~~~
1>No trigger Execution
2>DDL statement
3>No roll back possible
4>can’t get data from flash queries
5>Option to free table space

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you skip header records while loading? : aql loader

535


How does stored procedure reduce network traffic?

535


Is left join inner or outer?

580


Define implicit and explicit cursors.

622


Is record in pl sql?

509






what is recursive stored procedure? : Sql dba

522


What do you mean by stored procedures?

541


What are the advantages of indexing?

513


what is the difference between delete and truncate commands? : Sql dba

529


what is a constraint? : Sql dba

702


What is the difference between function and procedure in pl/sql?

531


How much does sql cost?

514


Is pl sql better than sql?

542


What is sql in java?

541


What are keys in sql?

540