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

What is strict mode in mysql?

477


What is “i_am_a_dump” flag in mysql?

561


How to dump a table to a file with 'mysqldump'?

519


What is a deterministic function?

593


What is a table schema?

534






What is the difference between now() and current_date()?

498


How do I select a database in mysql?

491


Why do you think it is advised to not to use guid and character columns as clustered index arrays?

673


How to make a column bigger and delete unique from table.

476


I want to start and stop mysql on windows? How do I do that?

516


What are the technical specifications of mysql?

673


Is sqlite faster than mysql?

489


What is truncate command?

456


How to get current MySQL version?

589


How to convert character strings to dates?

531