在文章中需要查询某个时间(段)的信息

来源:互联网 发布:c语言哪些是闰年 编辑:程序博客网 时间:2024/06/06 07:25

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(*)  替代*

原创粉丝点击