File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Querying A DB2 Table Last Update Date Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JDBC
Reply Bookmark "Querying A DB2 Table Last Update Date" Watch "Querying A DB2 Table Last Update Date" New topic
Author

Querying A DB2 Table Last Update Date

Rudy Yeung
Ranch Hand

Joined: Dec 27, 2000
Posts: 183
Grateful if you can let me know if there is anyway I can query the last update date stamp of a table using SQL or other means. Is there another table in a database that keeps track of the table information?
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

you can use a correlated subquery:
"select id, name, hiredate from emp where hiredate = (select max(hiredate) from emp)"
I'm pretty sure this is the same for DB2 also
Jamie
 
IntelliJ Java IDE
 
subject: Querying A DB2 Table Last Update Date
 
Threads others viewed
Timestamp advanced 4 hours
Update Table Nested Query (Using Function)
Assignment Log Project
Cannot perform SQL UPDATE null
help with batch processing large number of db records
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture