Following are the some main differences between oracle TRUNCATE and DELETE statements.
Note -REASON : When you type DELETE, all the data get copied into the Rollback Tablespace first, then delete operation get performed. That's why when you type ROLLBACK after deleting from a table, you can get back the data(the system get it for you from the ROLLBACK Tablespace). All this process takes time. But when you type TRUNCATE, it removes data directly without copying it into the Rollback Tablespace. That's why TRUNCATE is faster. Once you TRUNCATE, you cannot get back the data.
Devbarma on Nov 09, 2019 at 12:05 am
This article is contributed by Devbarma. If you like dEexams.com and would like to contribute, you can write your article here or mail your article to email@example.com . See your article appearing on the dEexams.com main page and help others to learn.