php - How to get the exact date and time when mysql database table last updated? -
hi new in web development , suffering problem date , time when mysql database table last updated because have show on web page. getting last updated date correctly not correct time please me.
<?php $sql = "show table status mydatabasename 'tablename'"; $tablestatus = mysql_query($sql); while ($array = mysql_fetch_array($tablestatus)) { $updatetime = $array['update_time']; $datetime = new datetime($updatetime); echo $updatetime ; } ?>
if you
select update_time information_schema.tables table_schema = 'dbname' , table_name = 'tabname'
Comments
Post a Comment