手机
当前位置:查字典教程网 >编程开发 >ASP教程 >ASP批量更新代码
ASP批量更新代码
摘要:解决方法:复制代码代码如下:

<>

<%

setrs=server.createobject("adodb.recordset")

sql="select*fromarticlewherebigtypes='我爱你'orderbyiddesc"找出数据库内类别为我爱你的所有数据

rs.opensql,conn,1,3

ifnotrs.eofthen

dowhilenotrs.eof

fname=rs("id")&".html"

folder="../html/Info/"

c_filepath=folder&fname

rs("filepath")=c_filepath

rs.update

rs.movenext

loop

endif

response.redirect"成功....."

%>

解决方法:

复制代码 代码如下:

<%

setrs=server.createobject("adodb.recordset")

sql="select*fromarticlewherebigtypes='我爱你'orderbyiddesc"找出数据库内类别为我爱你的所有数据

rs.opensql,conn,1,3

ifnotrs.eofthen

dowhilenotrs.eof

fname=rs("id")&".html"

folder="../html/Info/"

c_filepath=folder&fname

conn.execute("updatearticlesetfilepath='"&c_filepath&"'whereid="&rs("id"))

rs.movenext

loop

endif

response.redirect"成功....."

%>

【ASP批量更新代码】相关文章:

ASP辅助代码

一段ASP 伪静态代码

ASP部分代码介绍

批量文件自动搜索替换插入器 Ver2.1

使用VB将ASP代码封装到DLL文件

ASP采集入库生成本地文件的几个函数

淘特ASP木马扫描器的代码

ASP代码的对象化

ASP数据岛操作类

ASP连接数据库的全能代码

精品推荐
分类导航