1.统计每分钟内 url 的访问数量

SELECT SUBSTRING(CONVERT(varchar(100), date, 20), 0,17) as dateTime,COUNT(url) as count,url,referer FROM demo
GROUP BY url,(SUBSTRING(CONVERT(varchar(100), date, 20), 0,17) ),referer;