超人机梅塔路达 百度云:关于sql语句

来源:百度文库 编辑:中科新闻网 时间:2024/04/29 08:38:15
<!--#include file=../conn.asp-->
<%
call DBConnBegin()
dim id,sql
id=request("iid")
sql="delete * from gerenzhuce where id="&id
oRs.open sql,oConn,1,1
call DBConnEnd()
response.write "<script language=javascript>alert('成功删除此会员');history.go(-1);</script>"
response.end
%>
请高手帮我看下哪里错了.
我的数据库连接没有问题,id字段是自动编号.类型是int.
为什么我运行时出错.提示语法错误
我用的是sql server2000数据库

delete用法错误,不要加*。

sql="delete from gerenzhuce where id="&id