code reorg for Transactionw!
[csql.git] / test / sql / Predicate / varchar_NULL_upd.sql
blobadc695ddb41a6b4e45f571080b78f989b58b8eea
1 echo CREATE TABLE t1 (f1 INT , f2 VARCHAR (12));
2 CREATE TABLE t1 (f1 INT , f2 VARCHAR (12));
3 INSERT INTO t1 VALUES(1, 'ABCD');
4 INSERT INTO t1 VALUES(2, 'NULL');
5 INSERT INTO t1 VALUES(3, NULL);
6 INSERT INTO t1 VALUES(4, 'ABCEF');
7 INSERT INTO t1 (f1) VALUES (5);
8 INSERT INTO t1 VALUES(6, 'ABCFF');
9 echo select * from t1;
10 select * from t1;
11 echo Update t1 set f1= 15, f2=NULL where f2 IS NOT NULL;
12 Update t1 set f1= 15, f2=NULL where f2 IS NOT NULL;
13 echo select * from t1;
14 select * from t1;
15 echo Update t1 set f1= 25, f2='CSQL_LAKSHYA' where f2 IS NULL and f1 <= 3;
16 Update t1 set f1= 25, f2='CSQL_LAKSHYA' where f2 IS NULL and f1 <= 3;
17 echo select * from t1;
18 select * from t1;