adding test scripts
[csql.git] / test / tools / csql / null1.sql
blobad28b68a7388ac6e57c17abdef727d97586abc7e
1 echo "<<<<<<<<<<<<<<<<<<<<<<<< UPDATE t1 SET f2=NULL >>>>>>>>>>>>>>>>>>>>>>>>>";
2 echo create table t1(f1 int not null,f2 int,f3 int);
3 create table t1(f1 int not null,f2 int,f3 int);
4 echo insert into t1 values(1,2,3);
5 insert into t1 values(1,2,3);
6 echo insert into t1 values(2,NULL,4);
7 insert into t1 values(2,NULL,4);
8 echo insert into t1 values(3,4,NULL);
9 insert into t1 values(3,4,NULL);
10 echo insert into t1 values(10,20,30);
11 insert into t1 values(10,20,30);
12 echo insert into t1 values(11,NULL,NULL);
13 insert into t1 values(11,NULL,NULL);
14 echo commit;
15 commit;
16 echo select * from t1;
17 select * from t1;
18 echo update t1 set f2=NULL;
19 update t1 set f2=NULL;
20 echo commit;
21 commit;
22 echo select * from t1;
23 select * from t1;
24 echo drop table t1;
25 drop table t1;