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 DELETE and TRUNCATE?

Answer Posted / satyajit patel

DELETE: DML, Manual Commit, Till not committed can be
rollback, can be applied for both row level as well as
table level, can be used in trigger, doesn't release memory.

TRUNCATE: DDL, auto commit, cann't rollback, applied table
level, cann't be used in trigger, releases memory.

In both cases structure remains.

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you see all indexes defined for a table? : Sql dba

992


What is a common use of group by in sql?

1049


What are stored procedures in mysql?

1015


What schema means?

887


what is 'mysqldump'? : Sql dba

1108


What is sqlite format?

1191


What are different types of statements supported by sql?

1165


What is the starting oracle error number? What is meant by forward declaration in functions?

988


How to write pl sql program in mysql command prompt?

1089


How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?

1123


What is the source code of a program?

1069


What is a boolean in sql?

977


Why do we use sql constraints?

1165


How do I create a sql database?

994


Is sqlite good enough for production?

992