| |
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. |
| August 08, 2005 07:08:11 |
#4 |
| Jagdish |
Member Since: Visitor Total Comments: N/A |
RE: What is difference between TRUNCATE & DELETE |
Delete - delete deletes the records from table it can be rollbacked also you can give the where condiition to it. Truncate - delete all records from table There is no rollback it always commit without givening the commit
|
| |
Back To Question | |