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