code reorg for Transactionw!
[csql.git] / test / sql / Optimizer / singletabletest1.sql
blobf42163c7e64904f4f9cb5b2677c6c6be6f97f105
1 echo No Primary key -Test Case - 1,2,3
2 echo select * from t1;
3 explain plan select * from t1;
4 echo select * from t1 where f1=10;
5 explain plan select * from t1 where f1=10;
6 echo select * from t1 where f1>10;
7 explain plan select * from t1 where f1>10;
9 create index idx1 on t1 (f1) hash primary;
10 echo Primary key -Test Case - 4,5,6
11 echo select * from t1;
12 explain plan select * from t1;
13 echo select * from t1 where f1=10;
14 explain plan select * from t1 where f1=10;
15 echo select * from t1 where f1>10;
16 explain plan select * from t1 where f1>10;
18 create index idx2 on t1 (f2) hash;
19 echo Hash Index -Test Case - 7,8,9
20 echo select * from t1;
21 explain plan select * from t1;
22 echo select * from t1 where f2=10;
23 explain plan select * from t1 where f2=10;
24 echo select * from t1 where f2>10;
25 explain plan select * from t1 where f2>10;
27 create index idx3 on t1 (f3) tree;
28 echo Tree Index -Test Case - 10,11,12
29 echo select * from t1;
30 explain plan select * from t1;
31 echo select * from t1 where f3=10;
32 explain plan select * from t1 where f3=10;
33 echo select * from t1 where f2>10;
34 explain plan select * from t1 where f3>10;