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

首頁 > 編程 > ASP > 正文

ASP批量更新代碼

2024-05-04 10:57:33
字體:
供稿:網(wǎng)友
<!--#include file="../Conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from article where bigtypes='我愛你'order by id desc"   找出數(shù)據(jù)庫內(nèi)類別為我愛你的所有數(shù)據(jù)
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 "成功....."
%>
解決方法:
復(fù)制代碼 代碼如下:

<%
set rs=server.createobject("adodb.recordset")
sql="select * from article where bigtypes='我愛你'order by id desc"   找出數(shù)據(jù)庫內(nèi)類別為我愛你的所有數(shù)據(jù)
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 不能更新。數(shù)據(jù)庫或?qū)ο鬄橹蛔x。asp.net 用戶在線退出更新實現(xiàn)代碼asp.net(c#)程序版本升級更新的實現(xiàn)代碼sql server中批量插入與更新兩種解決方案分享(asp.net)asp.net中g(shù)ridview的查詢、分頁、編輯更新、刪除的實例代碼SqlCommandBuilder如何實現(xiàn)批量更新SqlCommandBuilder類批量更新excel或者CSV數(shù)據(jù)的方法
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 高雄市| 美姑县| 崇仁县| 古浪县| 宁陵县| 夏邑县| 孟连| 景宁| 招远市| 绥中县| 甘泉县| 奉新县| 柯坪县| 寻乌县| 元江| 禄劝| 靖宇县| 绥棱县| 临西县| 尉氏县| 黄梅县| 合江县| 罗山县| 洪洞县| 沙雅县| 广水市| 运城市| 宝鸡市| 苍南县| 吴桥县| 耒阳市| 肃南| 金寨县| 嘉峪关市| 乡城县| 积石山| 枞阳县| 托里县| 定陶县| 苏州市| 南涧|