GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Oracle  >  SQL Plus

 Print  |  
Question:  What is difference between TRUNCATE & DELETE

Answer:
Answer posted by Scott on 2005-05-25 18:30:04: TRUNCATE is a DDL command and cannot be rolled back. All of the memory space is released back to the server. 
DELETE is a DML command and can be rolled back. 
 
Both commands accomplish identical tasks (removing all data from a table), but TRUNCATE is much faster.


September 09, 2005 10:00:24 #5
 Luisa G. Reina   Member Since: Visitor    Total Comments: N/A 

RE: What is difference between TRUNCATE & DELETE
 
Truncate: Drop all object's statistics and marks like High Water Mark, free extents and leave the object really empty with the first extent. 
Delete: You can keep object's statistics and all allocated space.
     

 

Back To Question