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');
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;
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;