What is the difference between the DELETE TABLE and TRUNCATE TABLE commands in MySQL?
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 |
How many rows we can insert in a mysql table?
What does mysql flush tables do?
Can we store files in mysql?
Is mysql owned by oracle?
How to create a new view in mysql?
Why do we use the mysql database server?
How to enter microseconds in sql statements?
How to write optimized query in mysql?
How do I declare a variable in mysql?
What is required to create mysql database?
What is table level locking in mysql?
What is a heap table?