3,491
社区成员
发帖
与我相关
我的任务
分享
update emp set comm=
case
when null
then 300
end;
update emp set comm=300 where comm is null;
-- 为空: FIELD_NAME IS NULL
-- 不为空: FIELD_NAME IS NOT NULL
-- 相关的函数: NVL(FIELD_NAME,0)
[Quote=引用楼主 quzhibo 的帖子:]