Daniel Venturini <[EMAIL PROTECTED]> wrote:

> Hello I am using PHP, mysql. How would I query mysql to display the last
> time a table was last modified/changed/or updated. For example I have a user
> that updates a stats page via the web, and I would like it to say (Current
> up to "The last date the stats table was modified"). Thanks for your help,

Take a look at the TIMESTAMP column type. Add one to table and then you'l be 
able to use SELECT MAX(timestamp_column) on your table. 

See: http://dev.mysql.com/doc/mysql/en/DATETIME.html

> I've been looking online as well but thought this may be quicker. Take care.
> Thanks again.
> 
> Daniel
> 





-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to