If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > "update_time" for innodb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-21-10, 05:46
vivoices vivoices is offline
Registered User
 
Join Date: Jul 2009
Posts: 45
"update_time" for innodb

Hello,
does anyone know how to get table "update_time" using innodb engine?

Thanks,
David
Reply With Quote
  #2 (permalink)  
Old 06-21-10, 05:56
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
I think you just need to query the information_schema.tables
MySQL :: MySQL 5.0 Reference Manual :: 19.2 The INFORMATION_SCHEMA TABLES Table
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 06-23-10, 15:39
scottb scottb is offline
Registered User
 
Join Date: Oct 2003
Posts: 60
I'm 99.9% sure that valule doesn't exist in Innodb.
Reply With Quote
  #4 (permalink)  
Old 06-23-10, 16:56
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
Quote:
Originally Posted by scottb View Post
I'm 99.9% sure that valule doesn't exist in Innodb.
i think the original poster was asking about retrieving a timestamp for when the last update was made to the table

george answered it as though it was a question about whether "update_time" was a column in the table
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 06-24-10, 08:59
vivoices vivoices is offline
Registered User
 
Join Date: Jul 2009
Posts: 45
In the MySQL "information_schema" database is a table called "TABLES" and it has a "UPDATE_TIME" column for each table in all databases on the given s MySQL server.

For MyISAM tables the "UPDATE_TIME" field is updated every time a change to the given table is made, for InnoDB tables the value for "UPDATE_TIME" is always NULL.

Maybe someone knows if there is a patch, so InnoDB tables get their "UPDATE_TIME" value updated as well.

Thanks,
David
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On