1.统计分析时,统计值为null则转为0 //统计婚姻接口调用次数select count ,(zsj/count) as pjdysjfrom(-- 实时调用量 评论返回时间差(取平均值)select count(1) as count ,ifnull(sum(TIMESTAMPDIFF(day,a.DTJRQ,b.RKSJ)),0) as zsjfrom dsr_hc_bm a ,dsr_hc_hy bwhere a.dbmbh='dsr_hc_hy'and a.DTJRQ like CON