
如图,SQL数据库中一个表(TblCharinfoTimeLog)其中的列
我现在用sum积累select sum(usetime) as usetime from TblCharinfoTimeLog where charid='"&123&"'" 算出123的这几天的在线时间的总和了。
但是
set rs4 = Server.CreateObject("ADODB.Recordset")
select sum(usetime) as usetime from TblCharinfoTimeLog where charid='"&123&"'"
rs4.open sql2,conn1,1,2
rs4("usetime")=("usetime")-10
rs4.update
写出来了,可是查询了下123的时间还是没减少,请问大神哪里出了问题。。在线等!!感激不尽!!!!!
SQL数据库SUM的问题!!!
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
threenewbee 2015-10-26 15:32关注while rs4.eof
rs4!usetime=rs4!usetime-10
rs4.movenext
wend
这样看看本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报