How can I tell when a MySQL table was last updated?

后端 未结 16 1815
忘了有多久
忘了有多久 2020-11-22 17:17

In the footer of my page, I would like to add something like \"last updated the xx/xx/200x\" with this date being the last time a certain mySQL table has been updated.

16条回答
  •  情歌与酒
    2020-11-22 17:46

    Just grab the file date modified from file system. In my language that is:

     tbl_updated = file.update_time(
            "C:\ProgramData\MySQL\MySQL Server 5.5\data\mydb\person.frm")
    

    Output:

    1/25/2013 06:04:10 AM
    

提交回复
热议问题