机械制图角度标注:求教关于ASP的问题

来源:百度文库 编辑:查人人中国名人网 时间:2024/03/29 20:36:33
错误类型:(0x80004005)未指定的错误
/milan/matchlist.asp, 第 74 行

<%
dim rs,sql
dim page,maxPerPage
maxPerPage=20 '每页显示的记录数
myKeyword=Request("myKeyword")
page=Request("page")
if (page="" or isempty(page)) then page=1
thisUrl="matchList.asp?myKeyword="&myKeyword
session("oldUrl")=thisUrl&"&page="&page
set rs=server.createobject("adodb.recordset")
sql="select * from match where 1=1"
if not (myKeyword="" or isempty(myKeyword) ) then
sql=sql&" and title like '%"&myKeyword&"%'"
end if
sql=sql&" order by id desc"
'response.write sql
'response.End
rs.open sql,conn,1,1 //第74行
rs.pagesize=MaxPerPage
%>

我把表换成别的则可正常显示,而换成match则有错。请问是什么地方出的错?
请问 先锋互动 ,为什么加括号就行了?

加个括号试下
select * from [match] where 1=1

http://www.rzasp.com/