asp.net中如果使用Sql语句查询的值
int a;
string sum = "Select Sum(VoteID) as mcount From Votes";
SqlCommand Comm = new SqlCommand(sum, Conn);
string count1 = "Select Count(fine) From Votes Where fine=1";
SqlCommand Comm1 = new SqlCommand(count1, Conn);
a = (Int64)count1 / (Int64)sum;
在VS2008里面写的,数据库有连接打开,可是系统提示:无法将string转换成long、;还有个问题是,调试发现“Select Sum(VoteID) as mcount From Votes”得到的值没有赋给左边。这是为什么呢。。。求救求救。。。