diff between DELETE and TRUNCATE?.
Answer Posted / kumar
DELETE TABLE is a logged operation, so the deletion of each
row gets logged in the transaction log, which makes it
slow.
TRUNCATE TABLE also deletes all the rows in a table, but it
won't log the deletion of each row, instead it logs the
deallocation of the data pages of the table, which makes it
faster.
The records deleted through DELETE can be roll backed.
The records deleted through TRUNCATE can't be roll back.
If we are using TRUNCATE ina Transaction then only we can
do the roll back else not.
Both will delete the data but not the stucture of the table.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the usage of save points in oracle database?
What privilege is needed for a user to create views in oracle?
When do you get a .pll extension in oracle?
How to create a stored procedure in oracle?
how to clone 9i Database on to 10g Database.
can anyody please send me the dump for Oracle 10g certifications for DBA path?
Assuming today is Monday, how would you use the DBMS_JOB package to schedule the execution of a given procedure owned by SCOTT to start Wednesday at 9AM and to run subsequently every other day at 2AM.
Can we protect our pl/sql source code?
Give the constructs of a package, function or a procedure.
What is archive log in Oracle?
nw i'm doing MBA system and planning to do oracle,database management.tell me that whether it is useful r not?.refer any course for my carrier pls
How is it different from a normal table?
How to rename an index?
How to assign a table row to a record variable?
How to use subqueries with the in operator using oracle?