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 are the database skills?
Why do we need database normalization?
What is a candidate key in a database?
What is considered a database?
What is difference between database and dbms?
How many types of users in dbms?
What's the difference between delete and truncate ?
Is there an example how to configure externalfileaccess setting in firebird.conf?
What are the three levels of data abstraction?
What versions of clipper does netlib support?
1. How many nodes you are using project? 2. What is configuration file? 3. What is modules partition? How it is work in project? 4. What is Environment Variable? How it is use? 5. What is sequence? 6. How do you execute parallel jobs in projects? 7. If you run a job in job sequencer individually without any comments? 8. How many jobs did in your project? 9. How to schedule the job in Data stage 7.5 X2? 10. If you have 10 jobs in PX2, shall you run all jobs at a time? 11. I have 5 jobs (1-5), I connect with each other, but I want to run from 3-5 only how? 12. What is same partition? 13. If you have 40GB hard disk in I have 30GB data how I configure the nodes for partition? 14. Did you write any code for Data stage project? 15. Did you write any code for parallel job execution in your project? 16. Will you schedule all jobs at a time? 1. What are environment variable, job parameters? 2. What is the relationship between the tables in oracle? 3. How can u create the sequence? 4. What are the client components? 5. Tell me about the Data stage administrator? 6. Tell me about the Data stage Manager? 7. What is joining? 8. What is difference between grep command and fgrep command? 9. What is run time column propagation? 10. How to open the file? 11. How do you cleanse the data in your project? 1. Using which stage raw binary converted into dataset? 2. Which stage is used to read the data into external application? 3. Can we convert dataset into raw binary 4. XML path? 5. When we use the hash partition in aggregator stage? 6. How many reject links in transformer stage? 7. Data stage debugger available in which jobs? 8. Tell me two parts of data set? 9. What is the function used for null handling in modify stage? 10. Default execution mode for exception handler? 11. Maximum exception handler allowed in sequence?
Suppose database is running slow, what will you do?
How to implement a database management system?
What is ordbms with example?
What is a database in layman terms?