字符串没法求和
--------------
检查你求和的字段是否全部为数字
-----------
with test as(
select '13' [a]
union all
select '13fr' [a]
union all
select '1344' [a]
union all
select '13.23' [a]
union all
select '13vdrw' [a]
union all
select '大富翁13' [a]
union all
select '13' [a]
)
select sum(CONVERT(decimal(20,6),a)) from (
select * from test where ISNUMERIC(a)=1
) t