DROP TABLE
CREATE TABLE t1 (a INT);
DROP TABLE table_not_exists;
ERROR 1051 (42S02): Unknown table 'test.table_not_exists'
DROP TABLE IF EXISTS table_not_exists;
DROP TABLE v1;
- 在尝试删除不存在的表时,使用
IF EXISTS
删除表不会返回警告。Issue #7867 - 目前 和
CASCADE
仅在语法上支持。