您现在的位置是:网站首页> 编程资料编程资料
支持加号空格的查询_应用技巧_
2023-05-25
145人已围观
简介 支持加号空格的查询_应用技巧_
复制代码 代码如下:
<%
Response.write "关键字:("&trim(request("Q"))&")"&"
"
x=Replace(trim(request("Q"))," ",",")
'x=array(x)
t=split(x,",")
SQL="Select * From TB where kis<>0"
for i=0 to UBound(t)
if t(i)<>"" then
Response.write "第"&i+1&":"&t(i)&"
"
SQL=SQL&" or title like '"&t(i)&"'" '这个是关键
end if
next
Response.write SQL
%>
