ACCESS和SQL数据库查询有和不同?
makay 2003-08-22 11:45:15 我做好一个网页,用的是SQL数据库,现移到ACCESS上来,在SQL数据库上运行好好的,可一移到ACCESS就出了问题,请看下面:
地址栏:http://leo/type_show2.asp?l_type=国画&auditing=2
错误类型:
Microsoft JET Database Engine (0x80040E10)
/type_show2.asp, 第 157 行
错误信息:
至少一个参数没有被指定值。
下面从150行开始一直往下:
if M_type="" then
sql="select * from artinfo where L_type= '"&request("L_type")&"' and auditing= '"&request("auditing")&"' order by id desc"
elseif M_type<>"" then
sql="select * from artinfo where L_type='"&request("L_type")&"' and M_type='" &request("M_type") & "'"
else
end if
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
if rs.eof and rs.bof then
response.write "<p align=center>还 没 有 任 何 作 品</p>"
错误停在这句上:rs.open sql,conn,1,3 ,
另外下面二句有何不同?
"select * from artinfo where id='"&request("id")&"'"
"select * from artinfo where id="&request("id")
id的数据类型是数字.
ACCESS和SQL数据库查询不一样吗?