mariadb/storage/tokudb/mysql-test/tokudb_mariadb/t/clustering.test
2019-02-08 12:32:31 -08:00

17 lines
416 B
Text

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;
insert t1 select a+8, a+8, a+8 from t1;
select * from t1;
explain select a,c from t1 where a > 4;
explain select b,c from t1 where b > 4;
drop table t1;