code reorg for Transactionw!
[csql.git] / test / sql / Optimizer / composite_mixdatatype.sql
bloba3c540ad86f81b2e27c8e0bbf397dd8b225472b9
1 echo create table t1 (f1 smallint, f2 int, f3 bigint, f4 varchar, f5 date);
2 create table t1 (f1 smallint, f2 int, f3 bigint, f4 varchar, f5 date);
3 echo create index compositehashindex on t1(f2,f3,f4,f5) hash;
4 create index compositehashindex on t1(f2,f3,f4,f5) hash;
5 echo explain plan select * from t1;
6 explain plan select * from t1;
7 echo explain plan select * from t1 where f2=1 and f3=10 and f4='abc' and f5='2001-01-01';
8 explain plan select * from t1 where f2=1 and f3=10 and f4='abc' and f5='2001-01-01';
9 echo explain plan select * from t1 where f2=1 and f3=10 and f4='abc' and f5='2001-01-01';
10 explain plan select * from t1 where f2=1 and f3=10 and f4='abc' and f5='2001-01-01';
11 echo explain plan select * from t1 where f2<=10 and f3>=10 and f4 like 'abc%' and f5 in ('2001-01-01','2001-03-03');
12 explain plan select * from t1 where f2<=10 and f3>=10 and f4 like 'abc%' and f5 in ('2001-01-01','2001-03-03');
13 echo explain plan select * from t1 where f2<=10 and f3>=10 and f4 like 'abc%' and f5 in ('2001-01-01','2001-03-03');
14 explain plan select * from t1 where f2<=10 and f3>=10 and f4 like 'abc%' and f5 in ('2001-01-01','2001-03-03');
15 echo explain plan select * from t1 where f2<=10 or f3>=10 or f4 like 'abc%' or f5 in ('2001-01-01','2001-03-03');
16 explain plan select * from t1 where f2<=10 or f3>=10 or f4 like 'abc%' or f5 in ('2001-01-01','2001-03-03');
17 echo explain plan select * from t1 where f2<=10 or f3>=10 or f4 like 'abc%' or f5 in ('2001-01-01','2001-03-03');
18 explain plan select * from t1 where f2<=10 or f3>=10 or f4 like 'abc%' or f5 in ('2001-01-01','2001-03-03');