asp批量更新
exec="select * from YC_pic "
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,3
i=0
b=0
if not rs.eof then
do while not rs.eof
if rs("jstime")<date() then
rs("huishou")="1"
i=i+1
else
rs("huishou")="0"
b=b+1
end if
rs.update
rs.movenext
loop
end if
'rs.close
'set rs=nothing
'conn.close
'set conn=nothing
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,3
i=0
b=0
if not rs.eof then
do while not rs.eof
if rs("jstime")<date() then
rs("huishou")="1"
i=i+1
else
rs("huishou")="0"
b=b+1
end if
rs.update
rs.movenext
loop
end if
'rs.close
'set rs=nothing
'conn.close
'set conn=nothing
版权声明:若无特殊注明,本文皆为《
傲世零零 》原创,转载请保留文章出处。
本文链接:asp批量更新 http://www.wangjunjiang.com/?post=98
正文到此结束
发表吐槽
你肿么看?