Table Last Modified Date – MySQL

INFORMATION SCHEMA (also referred as system catalog) gives you access to database metadata and MySQL server information like the name of a database or table, the data type of a column, and access privileges.

We’ll look at how to get the last modified date of the table.

–Here’s the query to get the last modified of the table from a specific database.
SELECT TABLE_SCHEMA,TABLE_NAME,UPDATE_TIME
FROM information_schema.tables
WHERE TABLE_SCHEMA = ‘TestDB’
ORDER BY UPDATE_TIME DESC;

Happy learning!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s