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

What is the xml datatype?

1008


Where are full-text indexes stored?

954


Can sql server 2016 run on windows 7?

871


What is an inner join?

928


Can we add a cpu to sql server?

971


How to find table changes in sql server?

1067


Do you know what is bit data type and whats the information that can be stored inside a bit column?

919


what protocol both networks use? : Sql server database administration

944


How to create a simple stored procedure in ms sql server?

988


What are unicode character string data types in ms sql server?

1164


What is the use of =,==,=== operators?

968


Is resultset an interface?

915


What is data source document?

990


What is dknf in normalization form?

998


What is default constraint in ms sql server?

977