SELECT 子句中包含一个保留字、拼写错误或丢失的参数,或标点符号不正确--解决
北京不不 2005-05-05 09:05:56 titles=request.form("titles")
shuoming=request.form("shuoming")
banzhu=request.form("banzhu")
call openconn()
sql="insert into luntan_bankuai([title],[shuoming],[banzhu]) values('"&title&"','"&shuoming&"','"&banzhu&"')"
sqls="select from luantan_bankuai where titles="&titles
response.write sqls
set rs=conn.execute(sqls)
if not rs.eof then
response.write"<script language=""javascript"">alert(""版块标题已存在,请更换"");</script>"
else
call conn.execute(sql)
response.write"<script language=""javascript"">alert(""版块添加成功"");</script>"
end if
call closeconn()
set rs=nothing
运行后
select from luantan_bankuai where titles=生活琐事
Microsoft JET Database Engine 错误 '80040e14'
SELECT 子句中包含一个保留字、拼写错误或丢失的参数,或标点符号不正确。
/csmr/luntan/luntan_list_send.asp,行13