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;
17 echo 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;
27 echo select * from t1;
31 echo 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;
41 echo select * from t1;
45 echo 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;
55 echo 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;
65 echo select * from t1;
67 echo delete from t1 where f1=30;
68 delete from t1 where f1=30;
69 echo select * from t1;
71 echo delete from t1 where f1=3;
72 delete from t1 where f1=3;
73 echo select * from t1;
77 echo select * from t1;
79 echo delete from t1 where f1=30;
80 delete from t1 where f1=30;
81 echo select * from t1;
83 echo delete from t1 where f1=3;
84 delete from t1 where f1=3;
85 echo select * from t1;
89 echo select * from t1;
91 echo delete from t1 where f1<=10;
92 delete from t1 where f1<=10;
93 echo select * from t1;
99 echo select * from t1;