标签:
select TAGS,GROUP_CONCAT(TAGS) t from EXCEPTION_RESULT e,PM_TASK t where e.TASK_ID=‘1467859122980‘ and t.OWNER=‘admin‘ group by TAGS,TIMESTAMP order by e.TIMESTAMP DESC; select GROUP_CONCAT(TAGS) IP,GROUP_CONCAT(TIMESTAMP) t from EXCEPTION_RESULT e,PM_TASK t where e.TASK_ID=‘1467859122980‘ and t.OWNER=‘admin‘ and DATE_SUB(CURDATE(), INTERVAL 6 DAY)<=date(TIMESTAMP) group by TAGS,left(TIMESTAMP, 10) order by e.TIMESTAMP DESC; select TAGS,count(TAGS) s,GROUP_CONCAT(TAGS) IP, TIMESTAMP t from EXCEPTION_RESULT e,PM_TASK t where e.TASK_ID=‘1467859122980‘ and t.OWNER=‘admin‘ and DATE_SUB(CURDATE(), INTERVAL 6 DAY)<=date(TIMESTAMP) group by TAGS,left(TIMESTAMP, 13) order by TAGS DESC;
标签:
原文地址:http://www.cnblogs.com/onetwo/p/5660936.html