mysql 查询表的最大时间 的数据

SELECT * from
(SELECT MAX(a.update_date) as q ,a.monitoring_point_id from biz_monitoring_point_record a GROUP BY a.monitoring_point_id ORDER BY a.update_date DESC) as t1
LEFT JOIN biz_monitoring_point_record t2 ON t1.monitoring_point_id=t2.monitoring_point_id AND t1.q=t2.update_date

原文地址:https://www.cnblogs.com/duanqiao123/p/9118624.html