asp读取excel时求和sql语句的问题
普通的Sql="select sum(面积) from [Sheet1$] where id=88" 语句已经实现了,可求和的sql:Sql="select sum(面积) from [Sheet1$] " 运行处理却一片空白,也不报错,请高手指点哦
Set Conn9 = Server.CreateObject("ADODB.Connection") Driver = "Driver={Microsoft Excel Driver (*.xls)};" DBPath = "DBQ=" & Server.MapPath( "../fee.xls" ) Sql="select sum(面积),sum(单价),sum(结存) from [Sheet1$] " Set rs=Conn9.Execute(Sql)代码如上