mysql 计算两个时间之间有多少分钟

 

SELECT

TIMESTAMPDIFF(MINUTE,

(DATE_FORMAT('2015-08-12 10:38:00','%Y-%m-%d %H:%i')),

(DATE_FORMAT('2015-08-12 10:38:59', '%Y-%m-%d %H:%i'))
)
FROM

DUAL

posted @ 2019-07-09 10:44  星朝  阅读(11023)  评论(0编辑  收藏  举报