update tablename set col1=(case when col1 is null then 0 else col1 end),col2=(case when col2 is null then 0 else col2 end)