方法一: 代码如下: 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