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 does sql*loader handles newline characters in a record? : aql loader

1019


How do you change a value in sql?

996


How many row comparison operators are used while working with a subquery?

1014


Can we use view in stored procedure?

883


Why trigger is used in sql?

949


Explain the commit statement.

1135


Can variables be used in sql statements?

1012


What is difference between rank () row_number () and dense_rank () in sql?

1087


Explain autonomous transaction.

1146


What is nosql vs sql?

1154


What is the difference between a database and a relational database?

1081


how many groups of data types? : Sql dba

999


What is sharding in sql?

955


What is the difference between view and stored procedure?

947


Which is faster view or stored procedure?

930