Avg Time difference in mysql

后端 未结 4 1314
被撕碎了的回忆
被撕碎了的回忆 2021-02-12 19:08

Is there a function to find average time difference in the standard time format in my sql.

4条回答
  •  梦如初夏
    2021-02-12 19:21

    What I like to do is a

    SELECT count(*), AVG(TIME_TO_SEC(TIMEDIFF(end,start)))
    FROM
      table
    

    Gives the number of rows as well...

提交回复
热议问题