You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
604 B
26 lines
604 B
#
|
|
# Check on condition on different length keys.
|
|
|
|
--disable_warnings
|
|
drop table if exists t1;
|
|
--enable_warnings
|
|
|
|
CREATE TABLE t1 (
|
|
a char(5) NOT NULL,
|
|
b char(4) NOT NULL,
|
|
KEY (a),
|
|
KEY (b)
|
|
) charset utf8mb4;
|
|
|
|
INSERT INTO t1 VALUES ('A','B'),('b','A'),('C','c'),('D','E'),('a','a');
|
|
|
|
--sorted_result
|
|
select * from t1,t1 as t2;
|
|
analyze table t1;
|
|
explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B;
|
|
#select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B;
|
|
select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B order by binary t1.a,t2.a;
|
|
select * from t1 where a='a';
|
|
drop table t1;
|
|
|
|
# End of 4.1 tests
|
|
|