·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> 网站建设开发 >> ASP网站建设 >> 有关站内模糊查询的源程序!

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

作者:佚名      ASP网站建设编辑:admin      更新时间:2022-07-23
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