n=len(request("")
for i=1 to n rs.open "......where instr(keywords,'"&left(request(""),i)&"')=true",conn,1,1 do until rs.eof rs.movenext loop rs.close
next
这样是不是很麻烦
下面是我搜索的字段,你在这个基础上面来改看看,exec="select * from info where tit like '%"&keyword&"%' or send like '%"&keyword&"%' or comp like '%"&keyword&"%' order by id desc" set rs=server.createobject("adodb.recordset") rs.open exec,conn,1,1