adding test scripts
[csql.git] / test / tools / csql / indextran1.sql
blobe8781256fc1f01a46ecc794a1f125d372e472690
1 echo create table t1(f1 int);
2 create table t1(f1 int);
3 echo create index idx1 on t1(f1);
4 create index idx1 on t1(f1);
5 echo insert into t1 values(1);
6 insert into t1 values(1);
7 echo insert into t1 values(3);
8 insert into t1 values(3);
9 echo insert into t1 values(2);
10 insert into t1 values(2);
11 echo insert into t1 values(11);
12 insert into t1 values(11);
13 echo insert into t1 values(10);
14 insert into t1 values(10);
15 echo select * from t1;
16 select * from t1;
17 echo set autocommit off;
18 set autocommit off;
19 echo insert into t1  values(8);
20 insert into t1  values(8);
21 echo insert into t1  values(10);
22 insert into t1  values(10);
23 echo select * from t1;
24 select * from t1;
25 echo commit;
26 commit;
27 echo select * from t1;
28 select * from t1;
29 echo rollback;
30 rollback;
31 echo select * from t1;
32 select * from t1;
33 echo insert into t1 values(12);
34 insert into t1 values(12);
35 echo insert into t1 values(11);
36 insert into t1 values(11);
37 echo select * from t1;
38 select * from t1;
39 echo rollback;
40 rollback;
41 echo select * from t1;
42 select * from t1;
43 echo commit;
44 commit;
45 echo select * from t1;
46 select * from t1;
47 echo update t1 set f1=15 where f1=3;
48 update t1 set f1=15 where f1=3;
49 echo update t1 set f1=11 where f1=2;
50 update t1 set f1=11 where f1=2;
51 echo select * from t1;
52 select * from t1;
53 echo rollback;
54 rollback;
55 echo select * from t1;
56 select * from t1;
57 echo select * from t1 where f1=3;
58 select * from t1 where f1=3;
59 echo update t1 set f1=30 where f1=3;
60 update t1 set f1=30 where f1=3;
61 echo select * from t1;
62 select * from t1;
63 echo commit;
64 commit;
65 echo select * from t1;
66 select * from t1;
67 echo delete from t1 where f1=30;
68 delete from t1 where f1=30;
69 echo select * from t1;
70 select * from t1;
71 echo delete from t1 where f1=3;
72 delete from t1 where f1=3;
73 echo select * from t1;
74 select * from t1;
75 echo rollback;
76 rollback;
77 echo select * from t1;
78 select * from t1;
79 echo delete from t1 where f1=30;
80 delete from t1 where f1=30;
81 echo select * from t1;
82 select * from t1;
83 echo delete from t1 where f1=3;
84 delete from t1 where f1=3;
85 echo select * from t1;
86 select * from t1;
87 echo commit;
88 commit;
89 echo select * from t1;
90 select * from t1;
91 echo delete  from t1 where f1<=10;
92 delete  from t1 where f1<=10;
93 echo select * from t1;
94 select * from t1;
95 echo delete from t1;
96 delete from t1;
97 echo commit;
98 commit;
99 echo select * from t1;
100 select * from t1;
101 echo drop table t1;
102 drop table t1;
103 echo quit;
104 quit;