歌曲《大长今》歌词:统计昨天19:00:00至今天19:00:00之间的记录,SQL语句如何写

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/01 07:02:33
数据库SQL库,asp程序。表名jl,时间字段为stime,谢谢!
程序就是按上面的规定的时间进行统计,第天都是如此

td19=formatdatetime(now(),vbshortdate)&" 19:00:00"

sql="select * from jl where DateDiff(hh,stime,'"& td19 &"')>=0 and DateDiff(hh,stime,'"& td19 &"')<=24"