adding test scripts
[csql.git] / test / tools / csql / composite2.sql
blob9869da3ee1c8759fe667b59a10df86ee9517959d
1 echo create table t1(f1 int not null,f2 int,f3 int);
2 create table t1(f1 int not null,f2 int,f3 int);
3 echo create index idx1 on t1(f1,f3) hash unique;
4 create index idx1 on t1(f1,f3) hash unique;
5 echo insert into t1 values(1,2,3);
6 insert into t1 values(1,2,3);
7 echo insert into t1 values(1,4,3);
8 insert into t1 values(1,4,3);
9 echo select * from t1;
10 select * from t1;
11 echo drop table t1;
12 drop table t1;
14 echo create table t1(f1 int not null,f2 int,f3 int not null);
15 create table t1(f1 int not null,f2 int,f3 int not null);
16 echo create index idx2 on t1(f1,f3) hash primary;
17 create index idx2 on t1(f1,f3) hash primary;
18 echo insert into t1 values(1,2,3);
19 insert into t1 values(1,2,3);
20 echo insert into t1 values(1,4,3);
21 insert into t1 values(1,4,3);
22 echo select * from t1;
23 select * from t1;
24 echo drop table t1;
25 drop table t1;
27 echo create table t1(f1 int not null,f2 int,f3 int,primary key(f1,f3));
28 create table t1(f1 int not null,f2 int,f3 int,primary key(f1,f3));
29 echo insert into t1 values(1,2,3);
30 insert into t1 values(1,2,3);
31 echo insert into t1 values(1,4,3);
32 insert into t1 values(1,4,3);
33 echo select * from t1;
34 select * from t1;
35 echo drop table t1;
36 drop table t1;