diff between DELETE and TRUNCATE?.

Answers were Sorted based on User's Feedback



diff between DELETE and TRUNCATE?...

Answer / sandeep desai

Some more additions

With Truncate command Oracle sets the High Water Mark to
Zero
whereas
With Delete command this doesn't happen since data is not
released from the memory

Is This Answer Correct ?    0 Yes 0 No

diff between DELETE and TRUNCATE?...

Answer / chaitanyabilla

delete-low water mark level
truncate-high water level

Is This Answer Correct ?    0 Yes 0 No

diff between DELETE and TRUNCATE?...

Answer / 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

diff between DELETE and TRUNCATE?...

Answer / padma

delete comd is used to delete not a specific record rather
all records without affecting the structure of the records
truncate comd is used to delete all the records from
existing table,retaining the structure o that table.
by using delete comd v can rollback all the delete
records .it is record level cmd
wherease truncate cmd v cannot rollback. it is table
level cmd

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Oracle General Interview Questions

How to use windows user to connect to the server?

0 Answers  


i have a table with the columns below as Emp_ID Address_ID Address_Line City Country -------- --------- ----------- ------ --------- Q: Display the Emp_ID's those having more than one Address_ID

7 Answers   IBM,


How to start a specific oracle instance?

0 Answers  


How to add another datafile to a tablespace?

0 Answers  


Why do we use coalesce function in oracle?

0 Answers  






pls explain connect by prior with example and its real time use

3 Answers  


How to install oracle database 10g xe?

0 Answers  


If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...

0 Answers   NIC,


What is a Redo Log ?

3 Answers  


How to use existing values in update statements using oracle?

0 Answers  


Whats the benefit of dbms_stats over analyze?

0 Answers  


How to get maxsal , minsal, ename department wise in single query

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)