what is the difference between TRUNCATE and DELETE command
in SQL
Answer Posted / dhanasekar.s
Truncate command executes faster then Delete command.
when you truncate the table we can't get back the data again
because data is removed from the memory.because ddl command
is auto commit.So we need not store any information about
deleted data in the memory.So it takes less time so faster.
But in the case of delete command is dml command.we can get
back(rollback) the data again.When you delete the data that
deleted data are stored in some where in memory that
information should be logged in the database log
information.From that information we can get the data again
easily.
So that (logging purpose) it takes time then truncate command.
It is my observation and my idea.If it is having any
mistakes please post the reason .
Thanks in Advance.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Explain about party and customer in ar : oracle accounts receivable
Is there any link between pr form(purchse requisition)and po form(purchase order)
what is difference between inner join & nested query or subqueries
What is the difference between conversions and interfaces? : oracle accounts receivable
I would like to study certification course in Data base adminidtrator then where would i go to study this course?
QUESTION IS THAT DURING UPLOADING DATA IN PROD SERVER,OUR EQUIPMENT TAG NUMBERS ARE NOT MATCHING WITH SAP TAG NUMBERS SO DUE TO THIS WE ARE FACING PROB, BECAUSE WHENEVER ALARM IS COMING FROM SCADA DUE MISMATCH THE NOTIFICATION IS NOT CREATED IT IS GIVING ERROR. PLEASE SUGGEST THE METHOD SO THAT THE TAG NUMBERS OF BOTH (SCADA EQUIPMENT AND SAP EQUIP) SHOULD CONCIDE.OTHERWISE WE HAVE TO GO FOR LONG PROCESS EITHER BY INTERFACE TABLE OR BY EXPORTING ALL DATA AND MAKING RIGHT CHANGES.DO YOU HAVE ANY SHORTCT METHOD PL WRITE ME. THANKS
How would you determine what sessions are connected and what resources they are waiting for?
Differentiate between standard remittance and bills receivable remittance : oracle accounts receivable
i am working with OC 4.5 i have numbers in table in 10 row with some null values please tell me how to find total? Thanks
please send me oracle pl/sql exp resume. and also faqs...
How many segment are present in Oracle Manufacturing
What is auto invoicing? Explain : oracle accounts receivable
How would you go about increasing the buffer cache hit ratio?
What are the different tools available for hot backups in Oracle? Is it preferable to take it manually all the time or it depends on the size of the database?
Difference between negative and positive adjustments : oracle accounts receivable