1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-19 22:42:44 +03:00
Files
mariadb/mysql-test/suite/tokudb.cluster/r/query_plan.result
Zardosht Kasheff f45f072491 [t:2918], add tests to a common directory
git-svn-id: file:///svn/mysql/tests/mysql-test@23577 c7de825b-a66e-492c-adef-691d508d4ae1
2010-09-07 16:06:33 +00:00

27 lines
1.3 KiB
Plaintext

SET STORAGE_ENGINE='tokudb';
DROP TABLE IF EXISTS t1;
create table t1(a int, b int, c int, d int, primary key(a), clustering key(b), key (c))engine=tokudb;
insert into t1 values (1,1,1,1),(2,2,2,2),(3,3,3,3),(4,4,4,4),(5,5,5,5),(6,6,6,6),(7,7,7,7),(8,8,8,8),(9,9,9,9);
explain select * from t1 where b > 2;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 7 Using where
explain select * from t1 where c > 2;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL c NULL NULL NULL 9 Using where
explain select * from t1 where a > 4;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range PRIMARY PRIMARY 4 NULL 5 Using where
explain select * from t1 where c > 7;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range c c 5 NULL 2 Using where
explain select * from t1 where b > 7;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range b b 5 NULL 2 Using where
explain select a from t1 where b > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index b b 5 NULL 9 Using where; Using index
explain select a from t1 where c > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index c c 5 NULL 9 Using where; Using index
drop table t1;