批量删除数据方法一
id=request.form("checkbox")
id=split(id,",")
shu=0
for i=0 to ubound(id)
sql="select * from jiang_fname where id="&id(i)
set rs=conn.execute(sql)
if not rs.eof then
delete_file(rs("fname"))
end if
rs.close
set rs=nothing
sql="delete from jiang_fname where id="&id(i)
conn.execute sql,shu1
shu=shu+1
nextif shu>0 then
response.write("")
else
response.write("")
end if
conn.close
set conn=nothing
方法二 使用了sql in
<%
arrdel=request("id")
'response.write arrdel
sql="delete from news where id in ("&arrdel&")"
'response.write sql
conn.execute sql
set conn=nothing
response.write""
response.end
%>
上面的二个批量删除实例代码,利用in的效益更高,也简单一些,用遍历的感觉代码多了一些。
一亿小目标手游
如果让你的人生从来,你可以像王健林一样霸气的表示一亿小目标吗
一亿小目标手机版2019
一亿小目标手机版2019趣味休闲模拟游戏,玩家在游戏中将会通
巴啦啦梦幻餐厅
巴啦啦梦幻餐厅是一款充满魔幻色彩的二次元模拟经营手游,游戏界
恋爱进行时九游版
恋爱进行时九游版是一款以模拟恋爱玩法为核心的角色扮演手游,精
皇室对决fr(Null’s Royale)
皇室对决fr,即皇室战争的私服变态版本,在该版本中玩家能够拥