[英]MySql - How to get datetime of last ALTER TABLE?
I'm looking for a way to get datetime of last ALTER TABLE (structure edit) of a table. 我正在寻找一种获取表的最后一个ALTER TABLE(结构编辑)的日期时间的方法。 I'm currently using MySql 5.6.
我目前正在使用MySql 5.6。 Checking information_schema db I can get only the last generic edit of the table (INSERT, UPDATE, etc.).
检查information_schema db我只能得到表的最后一个通用编辑(INSERT,UPDATE等)。 Thanks in advance.
提前致谢。
Try this 尝试这个
SELECT
create_time
FROM
INFORMATION_SCHEMA.TABLES
WHERE
table_schema = 'databasename'
AND table_name = 'tablename';
Above query gives the last table structure edited datetime. 上面的查询给出了最后一个表结构的编辑日期时间。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.