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

Where’s database data actually stored? Is there a way to see the files which are stored?

593


Where is the myisam table stored?

604


How will you export tables as an xml file in mysql?

551


How can I connect mysql database?

556


What is datadir?

550






How does triggers work in mysql?

589


Explain about the architecture of MYSQL?

627


How do I stop a query in mysql workbench?

566


How can we run batch mode in mysql?

611


How would concatenate strings in mysql?

601


What is a string in mysql?

552


What is pdo in mysql?

599


How many queries can mysql handle?

587


How to rename an existing column in a table?

615


Is there a way to see the files which are stored?

574