Differentiate between TRUNCATE and DELETE?
Answers were Sorted based on User's Feedback
Answer / vikas
When we use truncate data deletes permanently and can not recover.Truncate is fast because it not writes any thing in log file while perform deleting operations.
Delete is used to removed table data and it can be recover by using rollback . Delete is slow because it create log file before performing the delete operation.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vikas
delete is slow because it creates log file while performing delete operations.We can recover data which is removed by using delete command by using rollback.
Truncate is fast because it does not create any log file while performing delete operation.We can not recover data which is removed by using truncate command.
| Is This Answer Correct ? | 0 Yes | 0 No |
what diffrence between function and procedure?
what is primary key?
How are Indexes Update ?
What is the minimum client footprint required to connect c# to an oracle database?
How would you change old and new values in an insert, delete and update triggers?
How does one get the view definition of fixed views/tables?
What is a cluster?
How to pass a parameter to a cursor in oracle?
What is a parameter file in oracle?
How to load a large xml file?
is there a tool to trace queries, like profiler for sql server?
What are the components of logical database structure in oracle database?