what is the difference between delete and truncate?

Answer Posted / kadambari

Difference between Delete and Truncate :-

1. Truncate is a DDL statement hence it implicitly commits;
Delete is a DML statement hence we have to manually perform
commit.

2. Truncate doesn't fire the delete trigger hence it is
faster than Delete operation.

3. Once Truncated, data cannot be roll-backed; Delete
operation can be roll-backed.

4. Truncate resets the High water mark and frees up all the
extents; Delete doesn't reset the High water mark.


Thanks

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain primary key and composite key.

540


Which is the best database?

505


What is a data type in a database?

500


What is a relation in dbms?

534


Explain the Normalized Relations?

2307






Mention some disadvantages of query?

543


Is sql a rdbms?

454


How do you rename a database?

475


What is the normal procedure followed by a java client to access the db?

439


Why do we need to use a database?

516


Define "correlated subqueries".

528


What is database management used for?

494


Define database lock and its types.

511


What you mean by Object Relational DBMS?

542


What is bcnf?

597