国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

ASP批量更新代碼

2024-05-04 11:00:52
字體:
來源:轉載
供稿:網友
<!--#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 "成功....."
%>
解決方法:
復制代碼 代碼如下:
<%
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 "成功....."
%>

您可能感興趣的文章:

完美解決ASP 不能更新。數據庫或對象為只讀。asp.net 用戶在線退出更新實現代碼asp.net(c#)程序版本升級更新的實現代碼sql server中批量插入與更新兩種解決方案分享(asp.net)asp.net中gridview的查詢、分頁、編輯更新、刪除的實例代碼SqlCommandBuilder如何實現批量更新SqlCommandBuilder類批量更新excel或者CSV數據的方法
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 铁岭县| 乡宁县| 剑河县| 巴青县| 武安市| 科技| 萍乡市| 保亭| 舟山市| 河北区| 大姚县| 昔阳县| 汶上县| 喀什市| 加查县| 铁岭县| 延庆县| 朝阳县| 体育| 定陶县| 黄山市| 屯门区| 潮安县| 武平县| 门源| 年辖:市辖区| 孟州市| 紫阳县| 达孜县| 福安市| 安徽省| 新兴县| 沐川县| 巫溪县| 枣庄市| 太仆寺旗| 响水县| 静乐县| 海盐县| 荥经县| 德令哈市|