ASP查询两个时间段内的数据asp
查询两个时间段内的数据
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数据库,把#改成'
time_begin = datevalue("2007,1,1")
time_end = datevalue("2007,12,31")
access数据库:
sql="select * from 表名 where 日期字段>= #"&time_begin&"# and date<=#"&item_end&"#"
如果是sql数据库,把#改成'
我要评论