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?



What is the difference between the DELETE TABLE and TRUNCATE TABLE commands in MySQL?..

Answer / 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

More MySQL Interview Questions

What are the advantages of myisam over innodb?

0 Answers  


What is 1nf 2nf 3nf?

0 Answers  


How would you get the current date in mysql?

0 Answers  


Print 3 highest salary

9 Answers  


how to find 2nd highest salary in random database salary of employer.....

4 Answers  


What is the latest mysql?

0 Answers  


Explain the difference between mysql and mysql interfaces in php?

0 Answers  


Can we store images in mysql database?

0 Answers  


What is processlist in mysql?

0 Answers  


Can you tell a way to know the number of days between the two given dates in php?

0 Answers  


How do I switch users in mysql?

0 Answers  


How do you login to MySql using Unix shell?

0 Answers  


Categories