“语法错误 (逗号) 在查询表达式 'id=20, 21”,怎么处理这个逗号?
我用asp+access写程序,
sql="select * from book where id="
sql=sql &temp
temp是从上个页面传来的显示记录的标号(最多可以选2条记录)
dim temp
temp=Request("bookchange")
if temp="" then
temp=1
end if
如果temp传来的是2个数字,我测试了一下,系统报错:
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] 语法错误 (逗号) 在查询表达式 'id=20, 21' 中。
/bookmanage/lendbook.asp, 第 14 行
怎末处理,请教呀!