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

Why do we use mysql?

0 Answers  


Explain the different types of mysql joins.

0 Answers  


HOW TO FIND display the total number of weeks in the year of 1998 IN EMP TABLE

0 Answers  


What is cast in mysql?

0 Answers  


How to print message in mysql trigger?

0 Answers  


What is the use of count function in mysql?

0 Answers  


What is the difference between CHAR and VARCHAR data types?

2 Answers   Ramco,


How many tables will create when we create table, what are they?

5 Answers  


What is mysql in linux?

0 Answers  


How to list or view all databases from the mysql server.

0 Answers  


What are the differences between char and nchar?

0 Answers  


Is mysql owned by oracle?

0 Answers  


Categories