ASP查询两个时间段内的数据asp

/ / 2016-07-15   阅读:2492
查询两个时间段内的数据 time_begin = datevalue("2007,1,1") time_end = datevalue("2007,12,31") access数据库: sql="select * from 表名 where 日期字段>= #"&time_begin&"# and date<=#"&a...
查询两个时间段内的数据
time_begin = datevalue("2007,1,1")
time_end = datevalue("2007,12,31")

access数据库:
sql="select * from 表名 where 日期字段>= #"&time_begin&"# and date<=#"&item_end&"#"
   
如果是sql数据库,把#改成'

我要评论

昵称:
验证码:

最新评论

共0条 共0页 10条/页 首页 上一页 下一页 尾页
意见反馈