当前位置:网站首页>Sql操作
Sql操作
2022-07-30 05:40:00 【Lucky-boy-kj】
Sql统计:
- 按月统计下载数: select jack.month, count(*) as count from (select DATE_FORMAT(time,'%Y-%m') as month from download_info) jack group by month desc
Nginx配置goaccess 统计:
nginx配置goaccess 生成可视化统计: LANG="zh_CN.UTF-8" goaccess -a -d -f /var/log/nginx/access.log -p /etc/goaccess/goaccess.conf -o /usr/local/result.html
#================== 月 '%Y-%m' ================================ #1.近一年月份故障数展示 select t.time as timer, count(1) as count from (select DATE_FORMAT(occur_time,'%Y-%m') as time from exception where instrument_id = 1001 and inst_error_flag = 1 and occur_time >= '2019-03-1
边栏推荐
猜你喜欢
随机推荐
MySql fuzzy query Daquan
What is SOA (Service Oriented Architecture)?
C语言指针(指针数组、数组指针、函数指针、传参、回调函数等)超详细
np.argsort()函数详细解析
5.6EPOLLONESHOT事件
St. Regis Takeaway Project: New dishes and dishes paged query
G Bus Count (Google Kickstart2014 Round D Problem B) (DAY 89)
453.最小操作数使数组元素相等
np.where()用法
第一篇博客
猜数字小游戏(随机生成’三剑客‘)
面试前需要巩固的算法知识点(自用,更新中)
strcasecmp和strncasecmp
Socket通信编程
How is crawler data collected and organized?
My first understanding of MySql, and the basic syntax of DDL and DML and DQL in sql statements
ClickHouse data insert, update and delete operations SQL
VS2022中关于scanf函数报错解决方法
P3 元宝第五单元笔记
Qt设置窗口可拖动