上次访问mysql表的时间是什么时候? [英] When was the last time a mysql table was accessed?
本文介绍了上次访问mysql表的时间是什么时候?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法告诉一个mysql表最后一次访问的时间?访问是指该表中的任何类型的操作,包括更新,更改甚至选择或任何其他操作.
Is there a way to tell the last access time of a mysql table? By access I mean any type of operation in that table including update, alter or even select or any other operation.
谢谢.
推荐答案
您可以获取表的最后更新时间.
You can get the last update time of a table.
SELECT update_time FROM information_schema.tables WHERE table_name='tablename'
这篇关于上次访问mysql表的时间是什么时候?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文