select * from flow
where datetime between starttime and endtime
要查询的是每天某一时段如:2月1日到20日,每天凌晨1点到5点,flow表里的 内容,这个where 怎么写?
where datetime between starttime and endtime
要查询的是每天某一时段如:2月1日到20日,每天凌晨1点到5点,flow表里的 内容,这个where 怎么写?
where [datetime] between '2009-2-1' and '2009-2-20' and datepart(hh,[datetime]) between 1 and 5