做个笔记 SQLyog客户端访问MySQL服务器 统计数据:次数总数, 次数成功率,对象(obj)总数,对象(obj)成功率 要求:按时间排序和分组 sql语句如下: SELECT a.date AS `日期`, a.total AS `总次数`, a.objs AS `总对象数`, , ) AS `失败次数比率`, , ) AS `对象失败率` FROM (SELECT ) AS `total`, COUNT(DISTINCT(`obj_id`)) AS `objs`, , NULL)) AS…