SELECT uid, SUBSTR(addtime,1,10) as 创建日期, endtime, TIMESTAMPDIFF(MINUTE, addtime, endtime) as 直播时长 from room where addtime>='2016-11-08 00:00:00' and addtime<='2016-11-31 23:59:59' -- SUBSTR(addtime,1,10) as 创建日期 -- 如'2016-11-31 23:59:59';返回结果为2016-…