1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-24 14:48:09 +03:00
Files
mariadb/storage/tokudb/mysql-test/tokudb_mariadb/t/clustering.test
Sergei Golubchik 9a3b9a5416 tokudb test suites
2013-09-09 13:59:38 +02:00

17 lines
376 B
Plaintext

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;