当前位置:首页 > 网络编程 > WEB编程 > ASP > 有关站内模糊查询的源程序!

有关站内模糊查询的源程序!

点击次数:26 次 发布日期:2008-11-26 17:27:24 作者:源代码网
源代码网推荐 if bh="" then
   sql="select * from sl where bh like "%"&ss&"%""
  else
bh=clng(bh)
sql="select * from sl where bh=" & bh & " "
end if
  if nam<>"" then
  sql=sql&" and nam like "%"&nam&"%" "
   end if
  if jz<>"" then
   sql=sql&" and jz like "%"&jz&"%" "
end if
if pc<>"" then
pc=cint(pc)
  sql=sql&" and pc="&pc&" "
  end if
  if zw<>"" then
  sql=sql&" and zw like "%"&zw&"%" "
end if  

源代码网供稿.
网友评论 (0)
会员中心
网络编程
本站推荐
网络编程之精华