adding test scripts
[csql.git] / test / tools / csql / isNullNotNull.sql
blob3daa3ad4d50b78616cec29266905f90e39c7a5c6
1 create table t1(f1 int,f2 int);
2 insert into t1 values(12,23);
3 insert into t1 values(13,24);
4 insert into t1 values(14,25);
5 insert into t1 values(15,26);
6 insert into t1 values(NULL,27);
7 insert into t1 values(NULL,28);
8 insert into t1 values(16,29);
9 insert into t1 values(12,NULL);
10 insert into t1 values(17,NULL);
11 insert into t1 values(NULL,31);
12 insert into t1 values(12,32);
13 select * from t1;
14 select * from t1 where f1 is null;
15 select * from t1 where f1 is not null;
16 select * from t1 where f2 is null;
17 select * from t1 where f2 is not null;
18 select * from t1 where f1 is null or f2 is not null;
19 select * from t1 where f2 is null or f1 is not null;
20 drop table t1;