Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这篇文章非常好,显示了上次更改表的时间 如何判断 MySQL 表上次更新的时间?
但我需要找出过去 24 小时内的变化和时间,因为变化不止一个
你可以这样尝试:
SELECT * FROM information_schema.tables WHERE UPDATE_TIME >= DATE_SUB(CURDATE(), INTERVAL 1 DAY)
或者,
SELECT * FROM information_schema.tables WHERE UPDATE_TIME >= SYSDATE() - INTERVAL 1 DAY