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 difference between TRUNCATE and DELETE statement

Answer Posted / nageswarao

truncate is used for deleting all data from table.
it is similar to delete command without condition.
main differences b/w delete & truncate are
1.truncate is faster in execution than delete which will
restructure the complete table without bothering of data.
where as delete checks the data row by row wrotes
information into log and deletes.
2.with truncate we cannot use any conditions

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why olap is used?

974


What are xml indexes?

953


explain what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration

1099


Explain a join?

1071


On a windows server 2003 active – passive failover cluster, how do you find the node which is active?

1206


Tell me in brief how sql server enhances scalability of the database system?

992


List out the differences between the clustered index and non-clustered index in sql server?

1006


Why we need to use secondry database file? though, we can do same work using primary database file also.

6890


How do I find the query plan in sql server?

962


tell me what is blocking and how would you troubleshoot it? : Sql server database administration

902


How many databases instances are there in sql server 2000?

1099


Can a function call a stored procedure in sql server?

961


What is rolap and its advantage? : sql server analysis services, ssas

1284


How do I connect to sql server database?

1015


How to create a user name in a database?

1054