blob: 58d806ee365def6eb78b0b6d081aae2f3fe184fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
create table t1 (a int, b int, c text, key (a) clustering=yes, key (b)) engine=tokudb;
show create table t1;
insert t1 values (1, 1, 1);
insert t1 select a+1, a+1, a+1 from t1;
insert t1 select a+2, a+2, a+2 from t1;
insert t1 select a+4, a+4, a+4 from t1;
select * from t1;
explain select a,c from t1 where a > 2;
explain select b,c from t1 where b > 2;
drop table t1;
|