一:常用sql
1.以每年分组,看每年事件类型为SJLX02的有多少数量
select DATE_FORMAT(er.occurredDate,‘%Y‘) x ,count(*) y from event_report er where er.eventType = ‘SJLX02‘ GROUP BY x
标签:tty mat 9.png group pos log type sel count
一:常用sql
1.以每年分组,看每年事件类型为SJLX02的有多少数量
select DATE_FORMAT(er.occurredDate,‘%Y‘) x ,count(*) y from event_report er where er.eventType = ‘SJLX02‘ GROUP BY x
标签:tty mat 9.png group pos log type sel count
原文地址:https://www.cnblogs.com/youdream/p/8480770.html