怎样理解 set a.itemvalues=isnull(误餐费,0)?

update a
set a.itemvalues=isnull(误餐费,0)
from wm_wageedit a,byfgz b
where a.imonth=8 and a.wageitem='J误餐费' and a.name=b.姓名

如果是NULL则赋值0,否则赋误餐费的值
温馨提示:答案为网友推荐,仅供参考
相似回答