1
drop table if exists t1;
2
create table t1 (a integer, b integer,c1 CHAR(10));
3
insert into t1 (a) values (1),(2);
5
select count(*) from t1;
8
insert into t1 values(1,2,"test");
9
select count(*) from t1;
16
select count(*) from t1;
17
ERROR 42S02: Table 'test.t1' doesn't exist
18
create temporary table t1 (n int);
19
insert into t1 values (1),(2),(3);
24
truncate non_existing_table;
25
ERROR 42S02: Table 'test.non_existing_table' doesn't exist
26
create table t1 (a integer auto_increment primary key);
27
insert into t1 (a) values (NULL),(NULL);
29
insert into t1 (a) values (NULL),(NULL);
35
insert into t1 (a) values (NULL),(NULL);
41
create temporary table t1 (a integer auto_increment primary key);
42
insert into t1 (a) values (NULL),(NULL);
44
insert into t1 (a) values (NULL),(NULL);
50
insert into t1 (a) values (NULL),(NULL);
56
create table t1 (s1 int);
57
insert into t1 (s1) values (1), (2), (3), (4), (5);
58
create view v1 as select * from t1;
60
ERROR 42S02: Table 'test.v1' doesn't exist