增加一个条件:
hour(datetime字段名) >=12 and hour(datetime字段名) <15
select * from table where datepart(hh,datetime) between 12 and 15
select [datetime] from Table where datediff('hh',[datetime],2011-05-06 12:00:00) >= 3
where datepart(hh,字段名) between 12 and 15
select * from table where datepart(hour,datecolumn) between 12 and 15
datecolumn 是那个datetime的列名