dim userid,action action=request.QueryString("action") userid=request.QueryString("id") if userid="" then userid=request("userid") conn.execute "delete from corporation where user_id='"&userid&"'" conn.execute "delete from cs_company where user_id='"&userid&"'" 'response.Redirect "manageuser.asp" response.Redirect request.servervariables("http_referer") %>
你在数据库中的字段user_id是int型的,而你的SQL语句“"delete from corporation where user_id='"&userid&"'"”却是把userid当成了字符型,如果你确定userid中的值是一个数字,那么就将SQL语句改为: delete from corporation where user_id="&userid&"" 就OK了
本来无一物,何处惹尘埃
It is empty at all here, Why pm 2.5 is so TMD high!