先求每月的总变化数量,再叠加上个月的就是总粉丝量。with t1 as( select author, date_format(start_time,'%Y-%m') as `month`, round(sum(if(if_follow=2,-1,if_follow))/count(start_time),3) as fans_growth_rate, sum(if(if_follow=2,-1,if_follow)) as month_total_fans from tb_user_video_log as t1...