<% set rs=server.createobject("adodb.recordset") if request("action")="del" then sql="select * from t_custom where id="&request("id") rs.open sql,conn,1,1 company=rs("company") sql="delete from t_contact where company='"&company&"'" conn.execute sql sql="delete from t_custom where id="&request("id") conn.execute sql response.write "location.href='cust_list.asp'" end if %>
public.asp页面中的代码如下: <% For i = 0 To rs.pagesize -1 If rs.bof Or rs.EOF Then Exit For %>
<% set rs=server.createobject("adodb.recordset") if request("action")="del" then sql="select * from t_custom where id="&request("id") rs.open sql,conn,1,1 company=rs("company") sql="delete from t_contact "删除t_contact表全部数据 conn.execute sql sql="delete from t_custom where id="&request("id") conn.execute sql response.write "location.href='cust_list.asp'" end if %>
干凈没朋友
2024-12-02 19:19:24
delete from t_custom where id in("&request("id")&")