What is the difference between DELETE and TRUNCATE?

Answer Posted / protyusha banerjee dawn

Whenever we delete records then they are stored in data
dictionary and can be retrieved later ie by roll back.
but when we truncate then the memory used by the records
which is to be truncated is released and it cannot be
rolled back.

Is This Answer Correct ?    24 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the most restrictive isolation level? : Transact sql

548


How would you pass hints to the sql processor?

523


Does pl sql work in mysql?

526


Can you do multiple joins in sql?

541


What are the most important ddl statements in sql?

565






What are the two characteristics of a primary key?

483


How do you exit in sql?

581


What is relationship? How many types of relationship are there?

584


Does oracle roll back the transaction on an error?

527


What is varchar used for?

527


What is pl sql script?

558


What is a behavioral trigger?

511


What is query optimization in sql?

544


Which data type is a composite type?

519


How many times can we commit in a loop?

564