SELECT TIMESTAMPDIFF(minute,'2019-01-01 00:00:00', '2019-01-01 01:30:00')
返回结果 90
类推,有 SELECT TIMESTAMPDIFF(hour,'2019-01-01 00:00:00', '2019-01-01 01:30:00') 返回结果 1