1
drop table if exists foo;
3
Note 1051 Unknown table 'foo'
4
create temporary table foo (
5
a int not null auto_increment,
9
insert into foo( b ) values (1),(1),(1),(1),(1);
10
create table t2 as select * from foo;
11
insert into foo( b ) select b from t2;
13
create table t2 as select * from foo;
14
insert into foo( b ) select b from t2;
16
create table t2 as select * from foo;
17
insert into foo( b ) select b from t2;
19
create table t2 as select * from foo;
20
insert into foo( b ) select b from t2;
22
create table t2 as select * from foo;
23
insert into foo( b ) select b from t2;
25
explain select * from foo where a in (160000, 160001, 160002);
26
id select_type table type possible_keys key key_len ref rows Extra
27
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 3 Using where
28
explain select * from foo where a in (null, 160000, 160001, 160002);
29
id select_type table type possible_keys key key_len ref rows Extra
30
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 3 Using where