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

Answer Posted / shital

Delete - delete all the data from table but structure still remains as it is.
Truncate - delete all data from table but structure remains and memory still allocated for table.
Drop - delete all data as well as structure and also free the memory.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can mysql function return a table?

862


How to execute mysql query in php?

693


How to get current MySQL version?

823


Can we use mysql and mysqli together?

753


Where is mysql data stored linux?

717


In which year mysql created?

742


What is tee command in mysql?

726


What are the functions used to encrypt and decrypt the data present in mysql?

765


How do I quit mysql?

703


What is strict mode in mysql?

686


What is difference between Sql server and MySql database? It may be silly question but i really dont know.

1842


Why does mysql have so many connections?

692


What is an example of a delimiter?

719


Is mysql free download?

664


Why use stored procedures in mysql?

740