2002-08-30 21:32:59 +03:00
|
|
|
|
drop table if exists t1;
|
2003-01-06 01:48:59 +02:00
|
|
|
|
Warnings:
|
|
|
|
|
Note 1051 Unknown table 't1'
|
2001-09-27 23:05:54 -06:00
|
|
|
|
create table t1 (a int);
|
|
|
|
|
insert into t1 values (1);
|
|
|
|
|
insert into t1 values ("hej");
|
|
|
|
|
insert into t1 values ("hej"),("d<>");
|
|
|
|
|
set SQL_WARNINGS=1;
|
|
|
|
|
insert into t1 values ("hej");
|
|
|
|
|
insert into t1 values ("hej"),("d<>");
|
|
|
|
|
drop table t1;
|
|
|
|
|
set SQL_WARNINGS=0;
|
2003-01-06 01:48:59 +02:00
|
|
|
|
drop temporary table if exists not_exists;
|
|
|
|
|
Warnings:
|
|
|
|
|
Note 1051 Unknown table 'not_exists'
|
2003-01-07 18:59:08 -08:00
|
|
|
|
drop table if exists not_exists_table;
|
|
|
|
|
Warnings:
|
|
|
|
|
Note 1051 Unknown table 'not_exists_table'
|
|
|
|
|
show warnings limit 1;
|
|
|
|
|
Level Code Message
|
|
|
|
|
Note 1051 Unknown table 'not_exists_table'
|
|
|
|
|
drop database if exists not_exists_db;
|
|
|
|
|
Warnings:
|
|
|
|
|
Note 1008 Can't drop database 'not_exists_db'. Database doesn't exist
|
|
|
|
|
show count(*) warnings;
|
|
|
|
|
@@session.warning_count
|
|
|
|
|
1
|
|
|
|
|
create table t1(id int);
|
|
|
|
|
create table if not exists t1(id int);
|
|
|
|
|
select @@warning_count;
|
|
|
|
|
@@warning_count
|
|
|
|
|
0
|