首先创建数据表IP地址,访问时间和访问次数。如果每访问一次就插入一条记录,那么AccessCount可以不要,查询时使用count就可以了,这样当访问量很大的时候会对数据库......
datepart(hour,AccessDateTime) <b then AccessCount else 0 end ) as [Count]
from Counter c , (select 0 a,1 b union all select 1,2 union all select 2,3 union all select 3,4
9/14 首页 上一页 7 8 9 10 11 12 下一页 尾页 |