标签:date count _for cat mys nbsp form tail record
SELECT time30, COUNT(*) AS num FROM ( select DATE_FORMAT(time,‘%Y-%m-%d %H:%i‘) as time30 from( SELECT DATE_FORMAT(concat(date(CALL_DATE), ‘ ‘,HOUR (CALL_DATE),‘:‘,floor(MINUTE(CALL_DATE)/30)*30),‘%Y-%m-%d %H:%i‘ ) AS time FROM call_detail_records ) a ) as b GROUP BY time30;
标签:date count _for cat mys nbsp form tail record
原文地址:https://www.cnblogs.com/wjx-blog/p/10119575.html