这个是我已经分好组的
但是日期后边有时间 怎么让 5-29 日count成一日
谢谢
select count( f_StatVistor_IP) ,f_StatVistor_Vtime,f_StatVistor_IP from t_BH_StatVisitor where f_StatVistor_Vtime>='2012-05-25' and f_StatVistor_Vtime<='2012-05-30' and f_StatVistor_IP ='127.0.0.1' group by f_StatVistor_IP,f_StatVistor_Vtime 这是代码
select convert(char(10),getdate(),120)
group by convert(char(10),getdate(),120)
额 把后面的分秒去掉不就好了么