什么果蔬汁淡疤痕:请教(0x80040E14)的问题
来源:百度文库 编辑:神马品牌网 时间:2024/04/26 16:02:54
dim bookdate,dazhe
if request("huiyuanjia")>0 and request("shichangjia")>0 then
dazhe=round(request("huiyuanjia")/request("shichangjia"),2)
else
dazhe=0
end if
dim action,bookid
bookid=request.QueryString("id")
action=request.QueryString("action")
shjianame=request.Cookies("blueflame")("shjianame")
set rs_news=server.CreateObject("adodb.recordset")
rs_news.open "select shjiaid,name from shjia where username='"&shjianame&"'",conn,1,1
if not (rs_news.bof and rs_news.eof) then
CompanyName=rs_news("name")
shjiaid=rs_news("shjiaid")
else
response.write "当前没有记录!"
end if
rs_news.close
select case action
case "add"
sql="select count(*) from shop_books where bookname='" & trim(request("bookname")) & "' and pingpai='" & trim(request("pingpai")) & "' and shjiaid=" & shjiaid & ""
rs_news.open sql,conn,1,1
if rs_news(0)>0 then
rs_news.close
response.write "<script lanugage=javascript>alert('您已经添加过该产品,要修改产品信息请在管理产品信息中查询修改,现在返回!');window.history.go(-1);</script>"
response.end
end if请问我上面这段代码哪里错了,我一发布产品就出现Microsoft JET Database Engine (0x80040E14)
语法错误 (操作符丢失) 在查询表达式 'bookname='sdf' and pingpai='爱普生' and shjiaid=' 中。
/it/admin/saveaddbook.asp, 第 35 行
这句话,第三十五行是rs_news.open sql,conn,1,1这句
其中那个语法错误 (操作符丢失) 在查询表达式 'bookname='sdf' and pingpai='爱普生' and shjiaid=' 中的and shjiaid=' 它是错误后出现的提示但是在代码中没有发现又这个缺失操作符的这个,他说的查询表达式应该是这句大家看看这句sql="select count(*) from shop_books where bookname='" & trim(request("bookname")) & "' and pingpai='" & trim(request("pingpai")) & "' and shjiaid=" & shjiaid & "" 操作符或是语法有错误吗
if request("huiyuanjia")>0 and request("shichangjia")>0 then
dazhe=round(request("huiyuanjia")/request("shichangjia"),2)
else
dazhe=0
end if
dim action,bookid
bookid=request.QueryString("id")
action=request.QueryString("action")
shjianame=request.Cookies("blueflame")("shjianame")
set rs_news=server.CreateObject("adodb.recordset")
rs_news.open "select shjiaid,name from shjia where username='"&shjianame&"'",conn,1,1
if not (rs_news.bof and rs_news.eof) then
CompanyName=rs_news("name")
shjiaid=rs_news("shjiaid")
else
response.write "当前没有记录!"
end if
rs_news.close
select case action
case "add"
sql="select count(*) from shop_books where bookname='" & trim(request("bookname")) & "' and pingpai='" & trim(request("pingpai")) & "' and shjiaid=" & shjiaid & ""
rs_news.open sql,conn,1,1
if rs_news(0)>0 then
rs_news.close
response.write "<script lanugage=javascript>alert('您已经添加过该产品,要修改产品信息请在管理产品信息中查询修改,现在返回!');window.history.go(-1);</script>"
response.end
end if请问我上面这段代码哪里错了,我一发布产品就出现Microsoft JET Database Engine (0x80040E14)
语法错误 (操作符丢失) 在查询表达式 'bookname='sdf' and pingpai='爱普生' and shjiaid=' 中。
/it/admin/saveaddbook.asp, 第 35 行
这句话,第三十五行是rs_news.open sql,conn,1,1这句
其中那个语法错误 (操作符丢失) 在查询表达式 'bookname='sdf' and pingpai='爱普生' and shjiaid=' 中的and shjiaid=' 它是错误后出现的提示但是在代码中没有发现又这个缺失操作符的这个,他说的查询表达式应该是这句大家看看这句sql="select count(*) from shop_books where bookname='" & trim(request("bookname")) & "' and pingpai='" & trim(request("pingpai")) & "' and shjiaid=" & shjiaid & "" 操作符或是语法有错误吗
shjiaid='"
请教(0x80040E14)的问题
转SQL后出现的问题 - Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
dw (0x80040E14) 错误
Microsoft JET Database Engine (0x80040E14)UPDATE 语句的语法错误
asp----Microsoft JET Database Engine (0x80040E14)INSERT INTO 语句的语法错误。
错误类型:Microsoft JET Database Engine (0x80040E14)UPDATE 语句的语法错误
Microsoft JET Database Engine (0x80040E14)的错误,高手帮忙啊?
救急呀!!!这是我的错误,Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
Microsoft JET Database Engine (0x80040E14)
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)