asp.net 中如何获取sql slect sum中的结果 5
asp.net中的代码如下:sql="selectsum(produce)fromglwherethe_group=1";OleDbCommandsum=newOleDb...
asp.net中的代码如下:
sql = "select sum(produce) from gl where the_group=1";
OleDbCommand sum = new OleDbCommand(sql, conn);
Int32 result_1 = (Int32)sum.ExecuteScalar();
报错信息: 展开
sql = "select sum(produce) from gl where the_group=1";
OleDbCommand sum = new OleDbCommand(sql, conn);
Int32 result_1 = (Int32)sum.ExecuteScalar();
报错信息: 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询