Getting the date/time of the last change to a MySQL database

前端 未结 4 1390
花落未央
花落未央 2021-02-07 16:21

I\'m working with MySQL and I would like to get the date/time of the very last change to any table within a database. Each of my tables has an auto updating \'*_modified\' time

4条回答
  •  [愿得一人]
    2021-02-07 16:53

    Simply, to get all tables under one database use this query

    SELECT TABLE_NAME,CREATE_TIME,UPDATE_TIME
    FROM   information_schema.tables
    WHERE  table_schema = 'database_name'
    

    That's all

提交回复
热议问题