asp批量修改数据问题
<%
'asp 数组 批量修改记录
id=Request("id")
id=Split(id,",")
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("regtime")=regtime(i)
rs.Update
End If
Next
%>
我想在循环出来的记录中,每个记录后面加一个 修改 的按钮,这样每次提交的记录只有一个,只更新一个记录的数据。
因为现在循环修改的话,假如两个人同时打开表更新记录,晚提交的数据会先先提交的数据覆盖了。
在循环出来的记录中,我每次只需要更新一条记录,而不影响到其它的数据。请问要如何实现呢?