what is the difference between TRUNCATE and DELETE command
in SQL
Answer Posted / dheeraj
Delete is DML Command ,Whereas Trucate is DDL command
Delete can be Rolled Back,Truncate cannot be rolled back,
Truncate is much faster then Delete
Delete will not released the memory space ,Memories would
be same if we use delete command the structure of the
table is still there
Trncate can be free the space in the meomory
Delete , use check constraints if exits then show error
Truncate don't use check constraint
| Is This Answer Correct ? | 13 Yes | 4 No |
Post New Answer View All Answers
difference of using cursor for loop and open,fetch,close.which one is better
I need a Technical evaluation between Oracle and SAP ? please do a need ful.
TILL WHAT LEVEL OF SECURITY BO SUPPORTS?
Is there any link between pr form(purchse requisition)and po form(purchase order)
what are the tools used for oracle 10g in real time.
How would you determine who has added a row to a table?
hi iam kavya, i completed Oracle11i(finance module), i do not know how to face the interview questions please adivese me
Explain how to close periods in ar. : oracle accounts receivable
please send me oracle pl/sql exp resume. and also faqs...
Explain how to account for bank charges deducted from amount received against an invoice. : oracle accounts receivable
What is auto accounting what are the steps for setting up auto accounting? : oracle accounts receivable
What is the Difference between the Person_Type_id column in the per_all_people_f and per_person_type_usages_f
PURCHASE ORDER TO PAYABLES WHAT ENTREIS WILL HAVE
What is the use of transaction flexfield in autoinvoice? : oracle accounts receivable
How would you go about increasing the buffer cache hit ratio?