SQL Server-数据库中强varchar类型使用sum函数计算总和

 

select sum(cast(totalmoney AS DECIMAL)) as totalmoney from dbo.t_wxbill

 

posted @ 2015-08-26 18:53  dekevin  阅读(4055)  评论(0编辑  收藏  举报