含量百分比一般为几位:rs.open "select * from itemstoreb where itemid="&id,conn,1,3
来源:百度文库 编辑:中科新闻网 时间:2024/04/29 01:02:33
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] 语法错误 (操作符丢失) 在查询表达式 'itemid=' 中。
dim id,rs
id=request.QueryString("itemid")
dim prename,company,intro,predate,graph2,description,remarks,price
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from itemstoreb where itemid="&id,conn,1,3
rs("viewnum")=rs("viewnum")+1
rs.update
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] 语法错误 (操作符丢失) 在查询表达式 'itemid=' 中。
dim id,rs
id=request.QueryString("itemid")
dim prename,company,intro,predate,graph2,description,remarks,price
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from itemstoreb where itemid="&id,conn,1,3
rs("viewnum")=rs("viewnum")+1
rs.update
有两种情况,一种就是楼上说的,另一种情况,你的数据库表中itemid不是数值型的字段,所以也会报错.
如果不是数值型的字段,就要改为:
rs.open "select * from itemstoreb where itemid='"&id&"'",conn,1,3
id有没有值 ?
response.write "select * from itemstoreb where itemid="&id,conn
写出来看看SQL语句有没有问题
你的ID值为空,所以才会出错
rs.open "select * from num",conn,2,3中的“2,3”是什么意思呢?
rs.open "select * from itemstoreb where itemid="&id,conn,1,3
rs.open"select * from lyb order by sj DESC",conn,1,1是什么
rs.open "select * from * where *",conn,1 请问其中的1,2,3表示什么?
rs.open "select TOP 3 * from detail where ..是选上面的,选最后的3个怎么修改
rs.open "select * from wq_user where username='"&request.Cookies("cnhww")("username")&"' ",conn,1,1
把rs.open "select * from num",conn,2,3中的“2,3”换为“1,1”是什么意思?能不能说的详细一些?
rs.open书写
vb与rs.open
rs_s.open "select * from wq_books where bookid="&bookid,conn,1,1