cast(je as int)和cast(je as varchar) 都试过了 也不行 该如何转换
select
CAST([spmc] AS NVARCHAR(MAX)) AS [spmc],
sum(je) q
from formtable_main_1201_dt1 group by CAST([spmc] AS NVARCHAR(MAX))
试一下不知道你的版本是sql serve 2005的还是2008或者是更高的版本。。
sum(case when je='' then 0 else je::numeric end)