日期:2014-05-18  浏览次数:20703 次

用UPDATE 语句成NULL,请问该如何?
update   icu   set   anum=case   anum   when   0   then   is   null

这样是错的..请问怎样?

------解决方案--------------------
update icu set anum=case anum when 0 then null end

直接 null 就好
------解决方案--------------------
--如果仅仅是将0更新成NULL,这样好一点
update icu set anum=null where anum = 0
------解决方案--------------------
楼上正解