select
    date(out_time),
    round(
      sum(timestampdiff(second,in_time,out_time)) 
      / count(distinct uid),1) time
from
    tb_user_log
where
    artical_id not in (0)
    and month(out_time) = '11'
group by
    date(out_time)
order by
    time 

简单题要什么题解? 为什么题上说2021-11 我却只整了一个11?,当然是我猜到他没有限制年份,不过要写的话也很简单或者加一个and 或者改一下month函数