mysql按照分鐘統計

SELECT DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:00') AS TIME, COUNT(*) AS num FROM `t_xxx`  WHERE error_code = 4810 GROUP BY TIME ORDER BY num DESC;  code
相關文章
相關標籤/搜索