按小时查询总数

Code
select convert(nvarchar(13),begintime,120),count(1) from tb_table(nolock)
where begintime>='2008-10-20' and begintime<'2008-10-21'

group by convert(nvarchar(13),begintime,120)

posted on 2008-11-06 11:31  dhb133  阅读(178)  评论(0编辑  收藏  举报

导航