Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is the difference between TRUNCATE & DELETE command in Oracle?
Home
Oracle
What is the difference between TRUNCATE & DELETE command in Oracle?
+1
vote
asked
Jul 29, 2020
in
Oracle
by
Hodge
Q. What is the difference between TRUNCATE & DELETE command in Oracle?
#oracle
#truncate
#delete
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 29, 2020
by
Hodge
Both the commands are used to remove data from the database.
The difference between the two include:
TRUNCATE is a DDL operation while DELETE is a DML operation.
TRUNCATE drops the structure of a database and hence cannot be rolled back while the DELETE command can be rolled back.
The TRUNCATE command will free the object storage space while the DELETE command does not.
...