What are the differences between drop a table and truncate
a table?

Answer Posted / meena bisht

Drop: drop means it will drop the table including structure
and free the memory from hard disk.

Truncate: Truncate will truncate the data. The structure
will remain there and also will free the memory.

Is This Answer Correct ?    33 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I setup mysql?

701


Is mysql good for large database?

710


What is the difference between MyISAM Static and MyISAM Dynamic?

826


What is the default port for MySQL Server?

812


What is information_schema in mysql?

735


Do you need a license for mysql?

750


What is the phantom problem?

772


Does mysql use t sql?

769


How many sql dml commands are supported by 'mysql'?

692


Why use stored procedures in mysql?

747


How to create a new table by selecting rows from another table in mysql?

754


Explain the difference between procedure and function in mysql?

771


How do I download mysql on my laptop?

678


Why do we use pragma autonomous transaction?

703


what is a cursor? : Mysql dba

724