what is the difference between delete and truncate?
Answer Posted / kadambari
Difference between Delete and Truncate :-
1. Truncate is a DDL statement hence it implicitly commits;
Delete is a DML statement hence we have to manually perform
commit.
2. Truncate doesn't fire the delete trigger hence it is
faster than Delete operation.
3. Once Truncated, data cannot be roll-backed; Delete
operation can be roll-backed.
4. Truncate resets the High water mark and frees up all the
extents; Delete doesn't reset the High water mark.
Thanks
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of queries in a database?
What is dbms architecture?
What is network database?
Who is end user in database?
Which database server is best?
What is e-r model in the dbms?
How to handle data if f table are more than one and each table contain thousands of entries?
What is data redundancy in dbms?
What are the differences between a dbms and rdbms?
Is the internet a database?
What are new features postgre 9.1?
Is it good to save image in database?
Why do I need netlib?
Mention how deadlock can be resolved?
What is the purpose of sql?