我想对 information_schema 及其行为进行一些解释。假设我想知道 myisam 表何时被修改。我写了这个查询
select update_time from information_schema.tables
where table_schema = 'my_db' and table_name = 'my_table'
即使我对我的表进行了一些更改,直到我运行一个flush tables
. 不幸的是,在我看来,它update_time
存储了我运行刷新表的那一刻的日期和时间,而不是真正发生表更改的那一刻。这是真的吗?提前致谢。