Avg Time difference in mysql

后端 未结 4 2213
清歌不尽
清歌不尽 2021-02-12 19:04

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

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-12 19:20

    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...

提交回复
热议问题