1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

new EXPLAIN

fixed bug in mysql-test/create-test-result
fixed bug in union-subselect engine
This commit is contained in:
bell@sanja.is.com.ua
2002-09-26 23:08:22 +03:00
parent d9989c635e
commit 46a22a5be7
36 changed files with 607 additions and 457 deletions

View File

@ -51,27 +51,27 @@ drop table t1;
create table t1 (a int not null, b int not null, c int not null, primary key (a),key(b)) type=myisam;
insert into t1 values (3,3,3),(1,1,1),(2,2,2),(4,4,4);
explain select * from t1 order by a;
table type possible_keys key key_len ref rows Extra
t1 ALL NULL NULL NULL NULL 4 Using filesort
id select_type table type possible_keys key key_len ref rows Extra
1 FIRST t1 ALL NULL NULL NULL NULL 4 Using filesort
explain select * from t1 order by b;
table type possible_keys key key_len ref rows Extra
t1 ALL NULL NULL NULL NULL 4 Using filesort
id select_type table type possible_keys key key_len ref rows Extra
1 FIRST t1 ALL NULL NULL NULL NULL 4 Using filesort
explain select * from t1 order by c;
table type possible_keys key key_len ref rows Extra
t1 ALL NULL NULL NULL NULL 4 Using filesort
id select_type table type possible_keys key key_len ref rows Extra
1 FIRST t1 ALL NULL NULL NULL NULL 4 Using filesort
explain select a from t1 order by a;
table type possible_keys key key_len ref rows Extra
t1 index NULL PRIMARY 4 NULL 4 Using index
id select_type table type possible_keys key key_len ref rows Extra
1 FIRST t1 index NULL PRIMARY 4 NULL 4 Using index
explain select b from t1 order by b;
table type possible_keys key key_len ref rows Extra
t1 index NULL b 4 NULL 4 Using index
id select_type table type possible_keys key key_len ref rows Extra
1 FIRST t1 index NULL b 4 NULL 4 Using index
explain select a,b from t1 order by b;
table type possible_keys key key_len ref rows Extra
t1 ALL NULL NULL NULL NULL 4 Using filesort
id select_type table type possible_keys key key_len ref rows Extra
1 FIRST t1 ALL NULL NULL NULL NULL 4 Using filesort
explain select a,b from t1;
table type possible_keys key key_len ref rows Extra
t1 ALL NULL NULL NULL NULL 4
id select_type table type possible_keys key key_len ref rows Extra
1 FIRST t1 ALL NULL NULL NULL NULL 4
explain select a,b,c from t1;
table type possible_keys key key_len ref rows Extra
t1 ALL NULL NULL NULL NULL 4
id select_type table type possible_keys key key_len ref rows Extra
1 FIRST t1 ALL NULL NULL NULL NULL 4
drop table t1;