日期:2014-05-18  浏览次数:20956 次

求数据库问题
数据库有如下时间  
2012-02-01   00:07:59.000
2012-02-01   00:16:49.000
2008-02-25   15:54:42.840
2008-02-25   15:42:37.530


我如何通过sq查出2012-02-01   时间的数量
select   COUNT(*)
from   dbo.Consume
where   时间列表   =     ????

用了LIKE查不出来

------解决方案--------------------
SQL code

select count(*) from dbo.Consume where 时间列表>='2012-02-01 00:00:00' and 时间列表<'2012-02-02'