DROP TABLE removes one or more tables. All table data and the table definition are removed, so be careful with this statement! DROP [TEMPORARY] TABLE [IF EXISTS] table1; Use IF EXISTS to prevent an error from occurring for tables that do not exist. An error is generated for each non-existent table when using IF EXISTS. The TEMPORARY keyword has the following effects: 1. The statement drops only TEMPORARY tables. 2. The statement does not end an ongoing transaction Using TEMPORARY is a good way to ensure that non-TEMPORARY table is not deleted by accident. DROP TABLE examples: DROP TABLE table1; DROP TABLE IF EXISTS table1; DROP TEMPORARY TABLE eu_countries_temp;
“The best way to be ready for the future is to invent it.”— John Sculley