哪位能提供简单搜索源码?

imcjw 2005-06-23 10:11:35
asp+sql server 2000
数据库有time和product两个字段
在ser.asp页面有两个文本区,分别输入两个时间,单击搜索按钮,在list.asp页面即显示那两个时间范围内的产品和对应的时间值。
哪位能提供简单搜索源码?谢谢
...全文
71 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
patchclass 2005-06-23
  • 打赏
  • 举报
回复
time1=request("time1")
time2=request("time2")
sql="select * from table where '"&time1&"'>time and '"&time2&"'<time"
也可以的
ronakitty 2005-06-23
  • 打赏
  • 举报
回复
time1=request("time1")
time2=request("time2")
sql="select * from table where datediff('d',time1,time)>=0 and datediff('d',time2,time)<=0"
imcjw 2005-06-23
  • 打赏
  • 举报
回复
up

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧