冷 冷酷到底81 Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-28 #1 例如:name cort zhan 100 li 80 wa 60 我就想读出CORT列的和,然后用ASP在页面中把这个和显示出来,谢谢大家了.
T tzjxd Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-28 #2 <% sql="SELECT SUM(CORT) FROM " rs.open sql,conn,1,1 response.write(rs("SUM(CORT)")) %>
冷 冷酷到底81 Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-28 #3 不行呀 我的代码是: rs.open "insert into table1 (r1) values ('"&r1&"')",cn,3 rs.open "select sum(r1) from table1",cn,1,1 17行 response.write rs (("SUM(r1)")) 错误类型: ADODB.Recordset (0x800A0CC1) 在对应所需名称或序数的集合中,未找到项目。 /myweb/mine/duoduo/dafenchuli.asp, 第 17 行
不行呀 我的代码是: rs.open "insert into table1 (r1) values ('"&r1&"')",cn,3 rs.open "select sum(r1) from table1",cn,1,1 17行 response.write rs (("SUM(r1)")) 错误类型: ADODB.Recordset (0x800A0CC1) 在对应所需名称或序数的集合中,未找到项目。 /myweb/mine/duoduo/dafenchuli.asp, 第 17 行
D dgweb Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-28 #4 SQL = "insert into table1 (r1) values ('"&r1&"')" Set Rs = Conn.Execute(SQL) rs.open "select sum(r1) as Total from table1",cn,1,1 response.write rs("total") 注意RS集不要有冲突。
SQL = "insert into table1 (r1) values ('"&r1&"')" Set Rs = Conn.Execute(SQL) rs.open "select sum(r1) as Total from table1",cn,1,1 response.write rs("total") 注意RS集不要有冲突。