diff between DELETE and TRUNCATE?.

Answer Posted / sahaja mallarapu

Delete is a DML command.
Truncate is a DDL command.

Using delete we can delete specific rows by applying some
condition.
using truncate all rows are deleted. we cant apply any
condition here.

deleted rows can be rollbacked.
truncated rows cant be rollbacked.

memory occupied by deleted rows cant be reused.
memory occupied by truncated rows can be reused.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What privilege is needed for a user to create views in oracle?

581


Difference between hot backup vs. Cold backup?

602


What is a database schema in oracle?

611


Give the constructs of a package, function or a procedure.

529


What is the difference between I and G in Oracle?

595






Is oracle an operator?

522


How to use regular expression in pattern match conditions in oracle?

566


How to work with data objects interactively?

546


Why is oracle database so popular?

557


What is a sub query? Describe its types?

534


What is a named program unit?

574


Explain the use of rows option in exp command.

577


What is query image?

573


What is a package ? What are the advantages of package ?

591


How to convert dates to characters in oracle?

576