筛选表a中字段C1小于0的记录,并替换小于0的字段为0
下列语句对么?
select A1,B1,C1,D1 from a where C1<0
update a set C1=0
------解决方案--------------------
- SQL code
select * from a where C1<0update aset c1=0where c1<0
select * from a where C1<0update aset c1=0where c1<0