先通过drop database if exists aa试图删除一个不存在的数据库aa,系统出现提示1warning,此时通过show warnings查询显示的是empty set; 同样的语句,如果执行前通过W开启warnings显示的话,会展示warning信息,并且show warnings会出现结果为: 而经测试发现,执行drop table的情况下,不管是否有通过W开启warning展示,都可以通...
ERROR 1008 (HY000): Can't drop database 'xxx'; database doesn't exist #产生一个警告说明此数据库不存在 mysql> drop database if exists xxx; Query OK, 0 rows affected, 1 warning (0.00 sec) #创建一个数据库 mysql> create database xxx; Query OK, 1 row affected (0.00 sec) #if exists...
ERROR 1008 (HY000): Can't drop database 'xxx'; database doesn't exist #产生一个警告说明此数据库不存在 mysql> drop database if exists xxx; Query OK, 0 rows affected, 1 warning (0.00 sec) #创建一个数据库 mysql> create database xxx; Query OK, 1 row affected (0.00 sec) #if exists...