mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge with 4.0
This commit is contained in:
@ -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 SIMPLE t1 ref i i 4 const 1 where used
|
||||
1 SIMPLE t1 ref i i 4 const 1 Using where
|
||||
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 SIMPLE t1 ALL NULL NULL NULL NULL 3 where used
|
||||
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
|
||||
explain select @vv1:=i from t1 where i=@vv1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 index NULL i 4 NULL 3 where used; Using index
|
||||
1 SIMPLE t1 index NULL i 4 NULL 3 Using where; Using index
|
||||
explain select * from t1 where i=@vv1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 ref i i 4 const 1 where used
|
||||
1 SIMPLE t1 ref i i 4 const 1 Using where
|
||||
drop table t1,t2;
|
||||
|
Reference in New Issue
Block a user