adding test scripts
[csql.git] / test / sql / Datatype / varchar_default.sql
blobe534e4647aa08db7eda62a79a080d9db9b150788
1 echo Create table t1(f1 int, f2 varchar(15) default 'CSQL');
2 Create table t1( f1 int, f2 varchar(15) default 'CSQL');
3 echo insert into t1 values(1,'Lakshya1');
4 insert into t1 values(1,'Lakshya1');
5 echo insert into t1 values(2,NULL);
6 insert into t1 values(2,NULL);
7 echo insert into t1 values(3,'Lakshya3');
8 insert into t1 values(3,'Lakshya3');
9 echo insert into t1 values(4,NULL);
10 insert into t1 values(4,NULL);
11 echo insert into t1(f1) values(5);
12 insert into t1(f1) values(5);
13 echo select * from t1;
14 select * from t1;
15 echo select * from t1 where f2='CSQL';
16 select * from t1 where f2='CSQL';
17 echo update t1 set f2=NULL where f2='Lakshya3';
18 update t1 set f2=NULL where f2='Lakshya3';
19 echo select * from t1;
20 select * from t1;
21 echo select * from t1 where f2 IS NULL;
22 select * from t1 where f2 IS NULL;