国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 阳谷县| 常州市| 寻甸| 彭阳县| 吉木乃县| 军事| 广水市| 平舆县| 休宁县| 辰溪县| 崇明县| 上栗县| 澄迈县| 九寨沟县| 纳雍县| 台南市| 五大连池市| 福州市| 江都市| 岳普湖县| 石泉县| 徐汇区| 禹城市| 拜城县| 呼玛县| 瑞金市| 界首市| 凉城县| 陈巴尔虎旗| 桂平市| 尼玛县| 屯留县| 朝阳市| 汾阳市| 启东市| 瑞昌市| 汨罗市| 遂宁市| 漾濞| 嘉黎县| 玉门市|