中易网

asp+acc查询时间段内容

答案:1  悬赏:40  
解决时间 2021-01-18 10:21
  • 提问者网友:姑娘长的好罪过
  • 2021-01-17 21:57
asp+acc查询时间段内容
最佳答案
  • 二级知识专家网友:往事隔山水
  • 2021-01-17 23:17
fahsjr=request("fahsjr")
stime=request("开始时间")
etime=request("结束时间")

sql="select * from ybqh where id>0"

if trim("fahsjr")<>"" then
sql=sql&" and fahsjr="&fahsjr&" "
end if

if trim("开始时间")<>"" then
sql=sql&" and 开始时间字段名称<"&stime&" "
end if

if trim("结束时间")<>"" then
sql=sql&" and 结束时间字段名称>"&etime&" "
end if
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息!
大家都在看
推荐信息