
<%
'以下语句已经被标注,使用前想清楚,不可逆转,
sql="Update [member] Set mm = '123' Where mm = 222' "
'注释意思:Update [表名] Set 要修改的字段名 = '要修改为的内容' Where 要修改的字段名 = '修改前的内容'以上
connExecute(sql)
%>
你的问题补充那里 是读出来 在写入 这样 1,1 1,3 都不符合你的要求
要用 3,2 是可读可写
当然了 如果你的搜索条件搜索不到记录的话 肯定就修改不了什么
代码没什么问题 看看你的sql语句能不能搜索到记录
一条语句就行了
sql用
connexecute("update Product_Info set lastdate='"&now()&"' where id is not null")
access用
connexecute("update Product_Info set lastdate=#"&now()&"# where id is not null")
<%if request("action")="updateshow" then
set rs=serverCreateObject("adodbrecordset")
rsopen "select from prod where id="&request("id"),conn,1,3
if rs("show") then
rs("show")=false
else
rs("show")=true
end if
rsupdate
responseRedirect "viewprodasp"
end if%>
<!--这段放在文件头 -->
<%if rs("show") then%><img src="openjpg"><%else%><img src="openjpg"><%end if%></a>
<input name="更改" type="button" id="更改" onclick="windowlocationhref='viewprodaspid=<%=rs("id")%>&action=updateshow'">
以上就是关于asp批量更新数据库 是怎么解决的,谢谢全部的内容,包括:asp批量更新数据库 是怎么解决的,谢谢、请教一个asp更新数据库的问题!、asp批量更新数据库等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)