帮我看看这代码有错的吗
'//普通查询sql2="searchkey="&searchkey&"&anclassid="&anclassid
select case request("anclassid")
case "0"
sql1=" wuliaohao like '%"&searchkey&"%' "
case else
sql1=" (wuliaohao like '%"&searchkey&"%' )and anclassid="&request("anclassid")&" "
end select
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from BJX_goods where "&sql1&" order by adddate desc",conn,1,1
老是提示语法错误 (操作符丢失) 在查询表达式 '(wuliaohao like '%%' )and anclassid=' 中。
\advancedSearch.asp, line 82