1 echo "<<<<<<<<<<<<<<<<<< UPDATE t1 SET f2=0 WHERE f3>=1 >>>>>>>>>>>>>>>>>>>>>>";
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);
16 echo select * from t1;
18 echo UPDATE t1 SET f2=0 where f3>=1;
19 UPDATE t1 SET f2=0 where f3>=1;
22 echo select * from t1;