设置首页  |   加入收藏  |  联系我们   
您的位置: 主页>程序设计>ASP>正文
有关站内模糊查询的源程序! 
文章来源:  编辑:  发布时间:2007-11-27

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  


 
Tags:查询 模糊 有关 if sql bh end pc then and like nam
Google
 
上一篇: asp+版本简单的留言板的制作(一)    下一篇: 一个简单的网上书城的例子(四)
【返回顶部】 【打印】 【大】 【中】 【小】 【关闭】

 我来说两句
用户名: 新注册) 密码: 匿名评论 [论坛讨论]
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 相关文章
 热门文章

 
版权所有  2005-2006  Linux集中营  闽ICP备07500055号