1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

fixing EXPLAIN select types

This commit is contained in:
unknown
2002-10-03 18:47:04 +03:00
parent c9a2b58986
commit f094b6af4c
25 changed files with 189 additions and 187 deletions

View File

@ -19,14 +19,14 @@ i @vv1:=if(sv1.i,1,0) @vv2:=if(sv2.i,1,0) @vv3:=if(sv3.i,1,0) @vv1+@vv2+@vv3
2 1 0 0 1
explain select * from t1 where i=@vv1;
id select_type table type possible_keys key key_len ref rows Extra
1 FIRST t1 ref i i 4 const 1 where used
1 SIMPLE t1 ref i i 4 const 1 where used
explain select * from t1 where @vv1:=@vv1+1 and i=@vv1;
id select_type table type possible_keys key key_len ref rows Extra
1 FIRST t1 ALL NULL NULL NULL NULL 3 where used
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 where used
explain select @vv1:=i from t1 where i=@vv1;
id select_type table type possible_keys key key_len ref rows Extra
1 FIRST t1 index NULL i 4 NULL 3 where used; Using index
1 SIMPLE t1 index NULL i 4 NULL 3 where used; Using index
explain select * from t1 where i=@vv1;
id select_type table type possible_keys key key_len ref rows Extra
1 FIRST t1 ref i i 4 const 1 where used
1 SIMPLE t1 ref i i 4 const 1 where used
drop table t1,t2;