diff --git a/sql-statements/sql-statement-drop-table.md b/sql-statements/sql-statement-drop-table.md index d5f19d42ffa5a..e80625532d7a4 100644 --- a/sql-statements/sql-statement-drop-table.md +++ b/sql-statements/sql-statement-drop-table.md @@ -45,7 +45,14 @@ Query OK, 0 rows affected (0.22 sec) mysql> DROP TABLE table_not_exists; ERROR 1051 (42S02): Unknown table 'test.table_not_exists' mysql> DROP TABLE IF EXISTS table_not_exists; -Query OK, 0 rows affected (0.01 sec) +Query OK, 0 rows affected, 1 warning (0.01 sec) +mysql> SHOW WARNINGS; ++-------+------+---------------------------------------+ +| Level | Code | Message | ++-------+------+---------------------------------------+ +| Note | 1051 | Unknown table 'test.table_not_exists' | ++-------+------+---------------------------------------+ +1 row in set (0.01 sec) mysql> CREATE VIEW v1 AS SELECT 1; Query OK, 0 rows affected (0.10 sec) @@ -56,8 +63,7 @@ Query OK, 0 rows affected (0.23 sec) ## MySQL compatibility -* Dropping a table with `IF EXISTS` does not return a warning when attempting to drop a table that does not exist. [Issue #7867](https://github.com/pingcap/tidb/issues/7867) -* Currently `RESTRICT` and `CASCADE` are only supported syntactically. +Currently `RESTRICT` and `CASCADE` are only supported syntactically. ## See also