adding test scripts
[csql.git] / test / tools / csql / autocommit10.sql
blobb5cf6c76a521654d4288bbc64a0a4e2dc5d4bf05
1 echo set autocommit off;
2 set autocommit off;
3 echo create table t1(f1 int not null,f2 int,f3 int);
4 create table t1(f1 int not null,f2 int,f3 int);
5 echo insert into t1 values(1,2,3);
6 insert into t1 values(1,2,3);
7 echo insert into t1 values(10,20,30);
8 insert into t1 values(10,20,30);
9 echo insert into t1 values(100,200,300);
10 insert into t1 values(100,200,300);
11 echo insert into t1 values(1000,2000,3000);
12 insert into t1 values(1000,2000,3000);
13 echo commit;
14 commit;
15 echo select * from t1;
16 select * from t1;
17 echo update t1 set f2=0,f3=f1*0 where f1<=100 and f1 >1;
18 update t1 set f2=0,f3=f1*0 where f1<=100 and f1 >1;
19 echo select * from t1;
20 select * from t1;