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 the DELETE TABLE and TRUNCATE TABLE commands in MySQL?

Answer Posted / hrindows@gmail.com

DELETE TABLE is a logged operation, and every row deleted is logged. Therefore, the process is usually slow.
TRUNCATE TABLE also deletes rows in a table, but it will not log any of the rows deleted. The process is faster here in comparison. TRUNCATE TABLE can be rolled back and is functionally similar to the DELETE statement without a WHERE clause.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to connect html form to mysql database using php?

989


What are the different mysql database engines?

1230


How many entries can mysql handle?

1056


How to delete an existing column in a table?

1002


How do I download mysql on my laptop?

947


What are the steps required to view your mysql database?

1139


What is meant by decimal (5,2)?

1089


Do I need python for mysql?

971


Is mysql an oracle product?

891


How do I start mysql in mysql workbench?

1002


What is the query to display top 20 rows?

1066


How do I restore a mysql database dump file in linux?

1029


What is a blob datatype?

900


how to display nth highest salary from a table in a mysql query? : Mysql dba

1117


How do I install mysql on windows 10 64 bit?

959