diff options
author | unknown <bell@sanja.is.com.ua> | 2002-10-03 18:47:04 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-10-03 18:47:04 +0300 |
commit | f094b6af4c5c32bfda7f74461d47675ab61722a0 (patch) | |
tree | a10d91a6ce2aa4dc6b0104292912675442cafafb /mysql-test/r/distinct.result | |
parent | c9a2b58986635015b3f3867999ef3fafa2bd2728 (diff) | |
download | mariadb-git-f094b6af4c5c32bfda7f74461d47675ab61722a0.tar.gz |
fixing EXPLAIN select types
Diffstat (limited to 'mysql-test/r/distinct.result')
-rw-r--r-- | mysql-test/r/distinct.result | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/mysql-test/r/distinct.result b/mysql-test/r/distinct.result index d8386ddcfc3..5848e583d7e 100644 --- a/mysql-test/r/distinct.result +++ b/mysql-test/r/distinct.result @@ -173,9 +173,9 @@ INSERT INTO t2 values (1),(2),(3); INSERT INTO t3 VALUES (1,'1'),(2,'2'),(1,'1'),(2,'2'); explain SELECT distinct t3.a FROM t3,t2,t1 WHERE t3.a=t1.b AND t1.a=t2.a; id select_type table type possible_keys key key_len ref rows Extra -1 FIRST t3 index a a 5 NULL 6 Using index; Using temporary -1 FIRST t2 index a a 4 NULL 5 Using index; Distinct -1 FIRST t1 eq_ref PRIMARY PRIMARY 4 t2.a 1 where used; Distinct +1 SIMPLE t3 index a a 5 NULL 6 Using index; Using temporary +1 SIMPLE t2 index a a 4 NULL 5 Using index; Distinct +1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 t2.a 1 where used; Distinct SELECT distinct t3.a FROM t3,t2,t1 WHERE t3.a=t1.b AND t1.a=t2.a; a 1 @@ -189,8 +189,8 @@ insert into t4 select * from t3; insert into t3 select * from t4; explain select distinct t1.a from t1,t3 where t1.a=t3.a; id select_type table type possible_keys key key_len ref rows Extra -1 FIRST t1 index PRIMARY PRIMARY 4 NULL 2 Using index; Using temporary -1 FIRST t3 ref a a 5 t1.a 10 Using index; Distinct +1 SIMPLE t1 index PRIMARY PRIMARY 4 NULL 2 Using index; Using temporary +1 SIMPLE t3 ref a a 5 t1.a 10 Using index; Distinct select distinct t1.a from t1,t3 where t1.a=t3.a; a 1 @@ -275,13 +275,13 @@ WHERE ((t1.id=j_lj_t2.id AND t2_lj.id IS NULL) OR (t1.id=t2.id AND t2.idx=2)) AND ((t1.id=j_lj_t3.id AND t3_lj.id IS NULL) OR (t1.id=t3.id AND t3.idx=2)); id select_type table type possible_keys key key_len ref rows Extra -1 FIRST t1 index id id 4 NULL 2 Using index; Using temporary -1 FIRST t2 index id id 8 NULL 1 Using index; Distinct -1 FIRST t3 index id id 8 NULL 1 Using index; Distinct -1 FIRST j_lj_t2 index id id 4 NULL 2 where used; Using index; Distinct -1 FIRST t2_lj index id id 8 NULL 1 where used; Using index; Distinct -1 FIRST j_lj_t3 index id id 4 NULL 2 where used; Using index; Distinct -1 FIRST t3_lj index id id 8 NULL 1 where used; Using index; Distinct +1 SIMPLE t1 index id id 4 NULL 2 Using index; Using temporary +1 SIMPLE t2 index id id 8 NULL 1 Using index; Distinct +1 SIMPLE t3 index id id 8 NULL 1 Using index; Distinct +1 SIMPLE j_lj_t2 index id id 4 NULL 2 where used; Using index; Distinct +1 SIMPLE t2_lj index id id 8 NULL 1 where used; Using index; Distinct +1 SIMPLE j_lj_t3 index id id 4 NULL 2 where used; Using index; Distinct +1 SIMPLE t3_lj index id id 8 NULL 1 where used; Using index; Distinct SELECT DISTINCT t1.id from |