MySQL页面访问统计及排名情况
统计访问页面数量,以分辨率进行排名
SELECT CONCAT(`height` , '*', `width`) AS `resolution` , COUNT(CONCAT(`height`, '*', `width`)) AS `total` FROM `wifi_status_page` GROUP BY CONCAT(`height`, '*', `width`) ORDER BY `total` DESC LIMIT 0 , 30
最近7天页面访问量,每日统计数量,以日期为序
SELECT td AS showdate, COALESCE( totalcount, 0 ) AS totalcount FROM ( SELECT CURDATE( ) AS td UNION ALL SELECT DATE_ADD( CURDATE( ) , INTERVAL -1 DAY ) UNION ALL SELECT DATE_ADD( CURDATE( ) , INTERVAL -2 DAY ) UNION ALL SELECT DATE_ADD( CURDATE( ) , INTERVAL -3 DAY ) UNION ALL SELECT DATE_ADD( CURDATE( ) , INTERVAL -4 DAY ) UNION ALL SELECT DATE_ADD( CURDATE( ) , INTERVAL -5 DAY ) UNION ALL SELECT DATE_ADD( CURDATE( ) , INTERVAL -6 DAY ) ORDER BY td )a LEFT JOIN ( SELECT FROM_UNIXTIME(add_time, '%Y-%m-%d') add_data, COUNT( id ) AS totalcount FROM wifi_status_page WHERE FROM_UNIXTIME(add_time, '%Y-%m-%d') BETWEEN DATE_ADD(CURDATE(), INTERVAL -6 DAY) AND CURDATE() GROUP BY add_data )b ON a.td = b.add_data
最近30天页面访问量,每日统计数量,以日期为序
SELECT td AS showdate, COALESCE( totalcount, 0 ) AS totalcount FROM ( SELECT CURDATE( ) AS td UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -1 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -2 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -3 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -4 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -5 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -6 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -7 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -8 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -9 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -10 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -11 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -12 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -13 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -14 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -15 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -16 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -17 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -18 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -19 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -20 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -21 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -22 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -23 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -24 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -25 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -26 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -27 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -28 DAY) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -29 DAY) ORDER BY td )a LEFT JOIN ( SELECT FROM_UNIXTIME(add_time, '%Y-%m-%d') add_data, COUNT( id ) AS totalcount FROM wifi_status_page WHERE FROM_UNIXTIME(add_time, '%Y-%m-%d') BETWEEN DATE_ADD(CURDATE(), INTERVAL -29 DAY) AND CURDATE() GROUP BY add_data )b ON a.td = b.add_data
昨天24小时分时
SELECT td AS showhour FROM ( SELECT DATE_ADD(CURDATE(), INTERVAL -1 HOUR) as td UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -2 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -3 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -4 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -5 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -6 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -7 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -8 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -9 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -10 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -11 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -12 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -13 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -14 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -15 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -16 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -17 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -18 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -19 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -20 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -21 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -22 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -23 HOUR) UNION ALL SELECT DATE_ADD(CURDATE(), INTERVAL -24 HOUR) ORDER BY td )a
今天过去的11个小时
SELECT td AS showhour FROM ( SELECT NOW() AS td UNION ALL SELECT DATE_ADD(NOW(), INTERVAL -1 HOUR) UNION ALL SELECT DATE_ADD(NOW(), INTERVAL -2 HOUR) UNION ALL SELECT DATE_ADD(NOW(), INTERVAL -3 HOUR) UNION ALL SELECT DATE_ADD(NOW(), INTERVAL -4 HOUR) UNION ALL SELECT DATE_ADD(NOW(), INTERVAL -5 HOUR) UNION ALL SELECT DATE_ADD(NOW(), INTERVAL -6 HOUR) UNION ALL SELECT DATE_ADD(NOW(), INTERVAL -7 HOUR) UNION ALL SELECT DATE_ADD(NOW(), INTERVAL -8 HOUR) UNION ALL SELECT DATE_ADD(NOW(), INTERVAL -9 HOUR) UNION ALL SELECT DATE_ADD(NOW(), INTERVAL -10 HOUR) UNION ALL SELECT DATE_ADD(NOW(), INTERVAL -11 HOUR) ORDER BY td )a
以上所述是小编给大家分享的MySQL页面访问统计及排名情况,希望对大家有所帮助。
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
白云城资源网 Copyright www.dyhadc.com
暂无“MySQL页面访问统计及排名情况”评论...
稳了!魔兽国服回归的3条重磅消息!官宣时间再确认!
昨天有一位朋友在大神群里分享,自己亚服账号被封号之后居然弹出了国服的封号信息对话框。
这里面让他访问的是一个国服的战网网址,com.cn和后面的zh都非常明白地表明这就是国服战网。
而他在复制这个网址并且进行登录之后,确实是网易的网址,也就是我们熟悉的停服之后国服发布的暴雪游戏产品运营到期开放退款的说明。这是一件比较奇怪的事情,因为以前都没有出现这样的情况,现在突然提示跳转到国服战网的网址,是不是说明了简体中文客户端已经开始进行更新了呢?
更新日志
2024年11月05日
2024年11月05日
- 雨林唱片《赏》新曲+精选集SACD版[ISO][2.3G]
- 罗大佑与OK男女合唱团.1995-再会吧!素兰【音乐工厂】【WAV+CUE】
- 草蜢.1993-宝贝对不起(国)【宝丽金】【WAV+CUE】
- 杨培安.2009-抒·情(EP)【擎天娱乐】【WAV+CUE】
- 周慧敏《EndlessDream》[WAV+CUE]
- 彭芳《纯色角3》2007[WAV+CUE]
- 江志丰2008-今生为你[豪记][WAV+CUE]
- 罗大佑1994《恋曲2000》音乐工厂[WAV+CUE][1G]
- 群星《一首歌一个故事》赵英俊某些作品重唱企划[FLAC分轨][1G]
- 群星《网易云英文歌曲播放量TOP100》[MP3][1G]
- 方大同.2024-梦想家TheDreamer【赋音乐】【FLAC分轨】
- 李慧珍.2007-爱死了【华谊兄弟】【WAV+CUE】
- 王大文.2019-国际太空站【环球】【FLAC分轨】
- 群星《2022超好听的十倍音质网络歌曲(163)》U盘音乐[WAV分轨][1.1G]
- 童丽《啼笑姻缘》头版限量编号24K金碟[低速原抓WAV+CUE][1.1G]