| |
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. |
| November 11, 2005 03:33:36 |
#8 |
| santapan |
Member Since: October 2005 Total Comments: 1 |
RE: What is difference between TRUNCATE & DELETE |
| truncate is a Transcation control language & is run under set auto commit true status.Where as delete is a DML operation where we can easily rolled back the query output. |
| |
Back To Question | |