Invalid usage of aggregate function Sum() and Type: String

后端 未结 4 472
礼貌的吻别
礼貌的吻别 2020-12-21 15:25

I have a data table and a column contains int values. I have not specified the column with any datatype. When I perform the following.

object sum = dttest.Co         


        
4条回答
  •  甜味超标
    2020-12-21 15:58

    try

    dttest.Compute("Sum(Convert([Value], 'System.Int32'))","[Value] IS NOT NULL");
    

提交回复
热议问题