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

What is 'mysqlcheck'?

965


What is the maximum size of mysql database?

894


What is the innodb in mysql?

966


What is triggers and how it can be used in mysql?

901


What is view in mysql?

928


How do I delete a row in mysql?

891


How to return query output in xml format?

983


What are the advantages of a procedure?

871


Which is faster mysql or mongodb?

868


How can I insert images into a Mysql database?

1001


What are the differences between innodb and myisam engines?

923


Can mysql and mariadb coexist?

1020


How do I run mysql?

921


What is offset limit?

910


What is query log in mysql?

902