asp批量修改记录的代码

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

asp批量修改记录的代码

  2020-05-12 我要评论
<%
'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

%>

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们