ASP 循环导入导出数据处理 不使用缓存
时间:2019-09-14 20:34 来源/作者:互联网
-
<%
-
'
-
dim Content,Num,I,strCodea
-
-
I=request("I")
-
If len(I)=0 then I=0
-
Response.write "<br><div align=center>该程序目前已经循环处理了"&I&"次数据</div><br>"
-
-
strCodea="UploadFiles/News" '
-
strCodeb="""""/UploadFiles/News" '
-
strCodec="""""//www.zzvips.com/uploadfiles/news" '//替换字符串
-
-
Set rs = server.CreateObject("adodb.recordset")
-
rs.open "select content From news where id="&I&" and siteid=1 order by id desc",conn,1,1
-
If not(rs.eof or rs.bof) then
-
-
Content=rs("content")
-
Num=instr(content,strCodea)
-
If Num>0 then
-
If right(left(content,Num),2)="""""/" then
-
content=replace(content,strCodeb,strCodec)
-
end if
-
end if
-
-
end if
-
Rs.close
-
-
II=I+1
-
response.write("<meta http-equiv=""refresh"" content=""0;url=?I="&I""">")
-
Set rs = Nothing
-
%>
相关文章
热门资讯