774
772
create table t2 (a int, b int, filler char(100), key(a), key(b));
775
773
create table t3 (a int, b int, filler char(100), key(a), key(b));
777
select @a:= A.a + 10*(B.a + 10*C.a), @a, 'filler' from t1 A, t1 B, t1 C;
775
select @a:= A.a + 10*(B.a + 10*C.a), @a, 'filler' from t1 A, t1 B, t1 C where B.a >= 0;
778
776
insert into t3 select * from t2 where a < 800;
781
779
insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
782
780
create table t2 (a int, b int, primary key(a));
784
782
explain select * from t1;
785
783
id select_type table type possible_keys key key_len ref rows Extra
786
784
1 SIMPLE t1 ALL NULL NULL NULL NULL 10