1
drop table if exists t1;
8
INSERT INTO t1 VALUES ('A','B'),('b','A'),('C','c'),('D','E'),('a','a');
9
select * from t1,t1 as t2;
36
explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B;
37
id select_type table type possible_keys key key_len ref rows Extra
38
1 SIMPLE t1 ALL a NULL NULL NULL 5
39
1 SIMPLE t2 ALL b NULL NULL NULL 5 Using where; Using join buffer
40
select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B order by binary t1.a,t2.a;
48
select * from t1 where a='a';