源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

ASP批量更新代码

  • 时间:2022-05-17 12:23 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:ASP批量更新代码
<!--#include file="../Conn.asp"--> <% set rs=server.createobject("adodb.recordset") sql="select * from article where bigtypes='我爱你'order by id desc"   找出数据库内类别为我爱你的所有数据 rs.open sql,conn,1,3 if not rs.eof then do while not rs.eof fname = rs("id")&".html" folder = "../html/Info/" c_filepath = folder&fname rs("filepath")=c_filepath rs.update rs.movenext loop end if response.redirect "成功....." %> 解决方法:
[u]复制代码[/u] 代码如下:
<% set rs=server.createobject("adodb.recordset") sql="select * from article where bigtypes='我爱你'order by id desc"   找出数据库内类别为我爱你的所有数据 rs.open sql,conn,1,3 if not rs.eof then do while not rs.eof fname = rs("id")&".html" folder = "../html/Info/" c_filepath = folder&fname conn.execute("update article set filepath='"&c_filepath&"' where id="&rs("id")) rs.movenext loop end if response.redirect "成功....." %>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部