what is the difference between TRUNCATE and DELETE command
in SQL

Answer Posted / nithya

The delete statement will result in the table spaces or
memories would remain as the current size and table
structure remain in the database. Delete is not effective
when you use it to remove all data from a table, because it
takes up storage spaces due to unclear memories.

The truncate statement will result in clearing table spaces
or memories and the table structure remain in the database.
Therefore it free table storage spaces and use it only when
you need to remove all data from a table.

Is This Answer Correct ?    24 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to move the data from one flatfile to multiple staging tables?give me some examples? for example in po interface one flat file is there and multiple staging tables are there how can move it?please give me answer for this question?

1918


How many segment are present in Oracle Manufacturing

1807


Hi, IN oracle apps HRMS, if the employee changes his department, and when a conconurrent program is run for calulating the pay, The latest Dept id is not diaplayed, howeber the previous deptid is considered. Please can someone tell me where is the program going wrong, which side?

2359


How to clone the database using RMAN back

1615


What is auto accounting what are the steps for setting up auto accounting? : oracle accounts receivable

712






Is there any link between pr form(purchse requisition)and po form(purchase order)

2139


What is the technical flow associated with P2P or Procure to Pay cycle like the tables, APIs, concurrent programs involved in this cycle. Only technical please.

3336


What is the Difference between the Person_Type_id column in the per_all_people_f and per_person_type_usages_f

3985


What do you mean by Oracle MEDIA RECOVERY?

723


Differentiate between writeoff and receipt writeoff. : oracle accounts receivable

732


I need a Technical evaluation between Oracle and SAP ? please do a need ful.

1488


Explain the process of recievables in oracle financials. : oracle accounts receivable

656


What is an Oracle database Partial Backup?

693


now iam working as an hr executive in hyderabad i would like to learn oracle hrms kindly suggest me some good institutes in hyderabd

1795


can u give guidance abt packages of plsql

1644