I want to know the time when my table is last modified ,whether it may insertion,deletion,update or structure change.
Asked
Active
Viewed 541 times
1
-
http://dev.mysql.com/doc/refman/5.1/en/tables-table.html – PeterMmm Nov 15 '13 at 09:40
-
http://stackoverflow.com/questions/307438/how-can-i-tell-when-a-mysql-table-was-last-updated – Trying Nov 15 '13 at 10:32
1 Answers
0
You can use the following query if your db uses the MyISAM storage engine
SELECT UPDATE_TIME
FROM information_schema.tables
WHERE TABLE_SCHEMA = 'dbname'
AND TABLE_NAME = 'tabname'

G-Man
- 7,232
- 18
- 72
- 100
-
-
-
1
-
Can you try SHOW table status FROM your_database WHERE name = 'your_table'; – G-Man Nov 15 '13 at 10:20
-
both are same SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'dbname' AND TABLE_NAME = 'tabname' – user2968238 Nov 15 '13 at 11:39
-