sql server 除法高精度多位小数除法溢出错误
select
convert(numeric(16,2),(
round(convert(numeric(16,2),(replace([col1],',',''))),2)
/
case when (round(convert(numeric(16,2),(replace([col2],',',''))),2))
=0 then 0.000001
else (round(convert(numeric(16,2),(replace([col2],',',''))),2)) end
))
from [tab1]
定,精,简,俭