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]


posted @ 2016-01-19 20:53  游子善心  阅读(0)  评论(0编辑  收藏  举报  来源