adding test scripts
[csql.git] / test / tools / csql / ddl6.sql
blob55757e7ec3e8eb7d823352a10f575d40e9040b4e
1 echo drop table test;
2 echo create table t1 (f1 integer);
3 create table t1 (f1 integer);
4 echo drop table t1;
5 drop table t1;
6 echo create table t1 (f1 integer);
7 create table t1 (f1 integer);
8 echo drop table t1;
9 drop table t1;
10 echo create table t1(f1 int,f2 int);
11 create table t1(f1 int,f2 int);
12 echo create index idx1 on t1(f1);
13 create index idx1 on t1(f1);
14 echo drop index idx1;
15 drop index idx1;
16 echo create index idx1 on t1(f1);
17 create index idx1 on t1(f1);
18 echo drop table t1;
19 drop table t1;
20 echo create table t1 (f1 integer not null, f2 integer not null,f3 int not null, f4 int not null,f5 int not null, f6 int not null,f7 int not null);
21 create table t1 (f1 integer not null, f2 integer not null,f3 int not null, f4 int not null,f5 int not null, f6 int not null,f7 int not null);
22 echo create index idx1 on t1 (f1);
23 create index idx1 on t1 (f1);
24 echo create index idx2 on t1 (f2) UNIQUE;
25 create index idx2 on t1 (f2) UNIQUE;
26 echo create index idx3 on t1 (f3) PRIMARY;
27 create index idx3 on t1 (f3) PRIMARY;
28 echo create index idx4 on t1 (f4) HASH PRIMARY;
29 create index idx4 on t1 (f4) HASH PRIMARY;
30 echo create index idx4 on t1 (f5) HASH PRIMARY;
31 create index idx4 on t1 (f5) HASH PRIMARY;
32 echo create index idx5 on t1 (f4) HASH PRIMARY;
33 create index idx5 on t1 (f4) HASH PRIMARY;
35 echo create index idx5 on t1 (f5) TREE;
36 create index idx5 on t1 (f5) TREE;
37 echo create index idx6 on t1 (f6) TREE PRIMARY;
38 create index idx6 on t1 (f6) TREE PRIMARY;
39 echo create index idx6 on t1 (f7) TREE PRIMARY;
40 create index idx6 on t1 (f7) TREE PRIMARY;
41 echo create index idx7 on t1 (f6) TREE PRIMARY;
42 create index idx7 on t1 (f6) TREE PRIMARY;
44 echo drop index idx1;
45 drop index idx1;
46 echo drop index idx2;
47 drop index idx2;
48 echo drop index idx3;
49 drop index idx3;
50 echo drop index idx4;
51 drop index idx4;
52 echo drop index idx5;
53 drop index idx5;
54 echo drop table t1;
55 drop table t1;