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

Answer Posted / velmurugan

Drop - will Delete the table date as well as the table
structure.
Truncate - Will Delete the table data only. The table
structure will remains.

Is This Answer Correct ?    71 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages and disadvantages of using mysql?

726


Is mariadb better than mysql?

760


What is view? How can you create and drop view in mysql?

674


How many tables we can create in mysql database?

695


What are date and time data types?

748


What is the default port for mysql and how it can change?

769


Explain the difference between delete and truncate.

743


Can we write procedure in mysql?

692


Can we store files in mysql?

682


Which datatype is used for email in mysql?

718


What are ddl statements in mysql?

737


How to create a table?

724


Is mysql good for big data?

682


What are the benefits of mysql?

698


How do I free up space in mysql?

688