TRUNCATE
and DELETE
commands does the same job, in both the cases data is manipulated, then why does the DELETE
command comes under DML commands and TRUNCATE
command comes under DDL commands?
DELETE
TRUNCATE
When we are using Truncate, we are de-allocating the whole space allocated by the data without saving into the undo-table-space. But, in case of Delete, we are putting all the data into undo table-space and then we are deleting all the data. The main points that put TRUNCATE in the DDL camp on Oracle, are:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With