Drop Table
suggest changeSyntax
- DROP TABLE table_name;
- DROP TABLE IF EXISTS table_name; – to avoid pesky error in automated script
- DROP TABLE t1, t2, t3; – DROP multiple tables
- DROP TEMPORARY TABLE t; – DROP a table from CREATE TEMPORARY TABLE …
Parameters
| Parameter | Details |
|---|---|
TEMPORARY |
Optional. Drop only temporary tables. A permanent table of the same name is left alone. |
IF EXISTS |
Optional. Do not raise an error if one of the tables does not exist. |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents