SqlServer 除法运算遇到被零除错误 我用以下两种方法解决:1.select a/case when b=0 then 1 else b end as c; 2.select case when b=0 then null else a/b end;(推荐) 作者:青羽