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;
文章标签 sqlserver 文章分类 SQL Server 数据库
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;
上一篇:mysql 查询死锁sql
下一篇:Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `c
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M