Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between TRUNCATE and DELETE command
in SQL

Answer Posted / padmapriya

1) Delete create log files when it is deleted and occupy
more space of memory

Whereas Truncate will not create any log files and hence
much faster than delete.

2) Delete can be roll back whereas Truncate is autocommit.

3) When there is foreign key constraint even though there
is no data in child table Truncate cannot be done. only
when the constraint is dropped truncate can be executed.

Whereas though we have foreign key constraints if the child
table is deleted, then parent table can be deleted.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain prerequisites and post activities of oracle database installation

2138


What view would you use to determine free space in a tablespace?

2226


I would like to study certification course in Data base adminidtrator then where would i go to study this course?

2195


Hey i want to join oracle apps so will you pls tell me that which institute is best in hyderabad.

2328


how can we add a field to the oracle standard forms through Form Persanlization or custom.pll

2402


what are all the conversion and interfaces in GL,AP,AR,HRMS with example? otherwise send send link for these

2331


i want to know about the javaBean.what is its purpose and how it can use in Forms.

2466


Differentiate between transaction type and transaction source? : oracle accounts receivable

1116


What is db_recovery_file_dest in oracle? When do you need to set this value?

1125


Difference between transaction type and transaction sources. : oracle accounts receivable

1033


what is semphore explian it?

2820


Explain how to account for bank charges deducted from amount received against an invoice. : oracle accounts receivable

1297


3. Steps in UAT?

2437


HOW TO SPOT AHIERARCHY?

2300


types of receipts and detail desription about recipts and tables effected by receipts?

2075