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