有关站内模糊查询的源程序!
类别: ASP教程
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
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
- 上一篇: HTTP方式上载文件的ASP程序实例
- 下一篇: 查看主机的内存使用情况
-= 资 源 教 程 =-
文 章 搜 索