select * from table where convert(varchar(10),VisiTime,120)='2009-12-17' --统计某天的数
select * from table where VisiTime between '2009-12-16' and '2009-12-17' --统计在某个时间段内的数
作为统计数量 count(*) 替代*
select * from table where convert(varchar(10),VisiTime,120)='2009-12-17' --统计某天的数
select * from table where VisiTime between '2009-12-16' and '2009-12-17' --统计在某个时间段内的数
作为统计数量 count(*) 替代*