MySQL Tutorial
The DROP TABLE
statement in MySQL is used to permanently delete a table from a database, along with all its data, indexes, and structure. This action CANNOT be undone, so use it with caution.
DROP TABLE table_name;
table_name
is the name of the table you want to delete.students
table and all its data from the database.You can delete multiple tables in one command:
If you want to delete all rows but keep the table structure, use: