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...

diff between DELETE and TRUNCATE?.

Answer Posted / kumar

DELETE TABLE is a logged operation, so the deletion of each
row gets logged in the transaction log, which makes it
slow.
TRUNCATE TABLE also deletes all the rows in a table, but it
won't log the deletion of each row, instead it logs the
deallocation of the data pages of the table, which makes it
faster.

The records deleted through DELETE can be roll backed.
The records deleted through TRUNCATE can't be roll back.

If we are using TRUNCATE ina Transaction then only we can
do the roll back else not.

Both will delete the data but not the stucture of the table.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oracle sid?

953


How to use "while" statements in oracle?

1325


How would you configure your networking files to connect to a database by the name of DSS which resides in domain icallinc.com?

1915


What is the difference between view and materialized view in Oracle?

1152


Can we write insert statement in function in oracle?

1089


How to start a new transaction in oracle?

1087


What are the differences between interval year to month and interval day to second?

1026


What is a table in oracle?

980


What are transaction isolation levels supported by oracle?

1072


What is the string concatenation operator in oracle?

1177


What are the four Oracle system processes that must always be up and running for the database to be useable?

1017


Explain the use of rows option in imp command.

1085


Compare and contrast between sql and sql server and explain its various functions?

963


What is meant by raw datatype?

1060


How to define an anonymous block?

1156