asp批量修改记录的代码
更新时间:2008年06月25日 17:14:35 作者:
asp 数组 批量修改记录的实现代码
<%
'asp 数组 批量修改记录
id=Request("id")
id=Split(id,",")
hits=Request("hits")
hits=Split(hits,",")
regtime=Request("regtime")
regtime=Split(regtime,",")
For i=LBound(id) To UBound(id)
Set rs = Server.CreateObject("ADODB.Recordset")
sql= "Select * from article where id ="&id(i)
If Not rs.EOF Then
rs("hits")=hits(i)
rs("regtime")=regtime(i)
rs.Update
End If
Next
%>
'asp 数组 批量修改记录
id=Request("id")
id=Split(id,",")
hits=Request("hits")
hits=Split(hits,",")
regtime=Request("regtime")
regtime=Split(regtime,",")
For i=LBound(id) To UBound(id)
Set rs = Server.CreateObject("ADODB.Recordset")
sql= "Select * from article where id ="&id(i)
If Not rs.EOF Then
rs("hits")=hits(i)
rs("regtime")=regtime(i)
rs.Update
End If
Next
%>
相关文章
(推荐一个超好的JS函数库)S.Sams Lifexperience ScriptClassLib
(推荐一个超好的JS函数库)S.Sams Lifexperience ScriptClassLib...2007-04-04
bootstrap制作jsp页面(根据值让table显示选中)
这篇文章主要为大家详细介绍了bootstrap做的jsp页面,根据值让table显示选中,具有一定的参考价值,感兴趣的小伙伴们可以参考一下2017-01-01


最新评论