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