mysql日期相减取小时 TIMESTAMPDIFF(HOUR,a.StartTime,a.EndTime) 转载于:https://www.cnblogs.com/penghq/p/8657064.html