Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DB Modification Date 1

Status
Not open for further replies.

lvennard

MIS
Apr 20, 2000
93
0
0
US
Can anyone tell me how (if its possible) to query the database and ask for its:
1: Table modification date
(the last time someone changed/add/deleted a table

2: Record modification date
(the last time someone changed/add/deleted data

I dont need both, but would prefer the record modification date. I'll take whatever I can get.

Im using php as my api, although that shouldn't make a difference. I can find it if you can give me the mysql function.

Thanks in advance!
 
1. SHOW TABLE STATUS [FROM db_name]

Done on a table by table basis...I tend to use a loop to runt thru the tables

2. I usually make this part of the table structure, use a unix time value (seconds since the epoch) since the mysql date format for timestamp is occassionaly bothersome to work with...or more simple even is just using the timestamp column type



Bastien

Cat, the other other white meat
 
Your right about messing with the time format... its never fun... but this works great anyway.
Thanks!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top