遇到一情况,前几天创建一个表,但是后来忙别的事情了,现在要用这个表,结果失忆了.....完全想不起来表名. 然后就想办法查询表的创建时间试图找回表名 最后找到了,根据表的创建时间排序,因为平常也用不到,直接记录下 select * from sys.tables order by create_date desc…
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…