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

How to grant create session privilege to a user in oracle?

763


What is the difference between primary key and unique key and foreign key in oracle?

750


What are the numeric comparison operations?

843


Where are the settings stored for each instance in oracle?

874


How to apply filtering criteria at group level in oracle?

796


You have found corruption in a tablespace that contains static tables that are part of a database that is in NOARCHIVE log mode. How would you restore the tablespace without losing new data in the other tablespaces?

1657


What happens if the update subquery returns multiple rows?

797


Explain the use of record option in exp command.

742


What is the difference between a user and a schema in oracle?

798


Is a rollback possible to any savepoint?

743


State all possible different index configurations a table can possibly have?

765


A table t is there.If you perform insert ,update and delete then the trigger will fire.What is the minimum no of trigger required for a table.

4874


What is set operator oracle?

713


What is snapshot is too old? Give and example for better understand.

1317


What are the benefits of ordbms?

810