请问我想在ASP页面被关闭时执行一条删除的SQL语句我这样写哪里有问题?
<body onUnload="dele();">
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select from xr_action ",conn,1,1
function dele()
conn.execute "delete from xr_action where dingdan is Null"
end function
rs.close
set rs=nothing
%>
......
部分代码省略