哪个大神可以帮忙把ASP的模糊搜索改成精确搜索啊

固始找房网 2019-09-16 10:16:19
哪个大神可以帮忙把ASP的模糊搜索改成精确搜索啊
<%
if keywords<>"" then
sql="select * from Info where 5=5"
if cid<>"" then
sql=sql & " and cid='" & cid & "' "
end if
if LX="sno" then '
sql=sql & " and sno like '%"&keywords&"%' "
end if
if LX="sname" then '
sql=sql & " and sname like '%"&keywords&"%' "
end if
sql=sql & " order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof Then
proCount=rs.recordcount
For i = 1 to proCount
if rs.EOF then
Exit For
end if
%>
...全文
34 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

3,423

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 其他开发语言
社区管理员
  • 其他开发语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧