wood burning stoves 2.0*
The moose likes JDBC and the fly likes recent entries from the database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "recent entries from the database" Watch "recent entries from the database" New topic
Author

recent entries from the database

ramanuja varun
Ranch Hand

Joined: Aug 31, 2007
Posts: 47
Is there a way to retrieve the most recent entries from the database.If yes please do mention.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You'll need to modify your data model to do this. You can add a modify date field to your table and select all those records after a chosen date.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37936
    
  22
Or if you have an auto-increment column, "id", try select . . . where id = max(id) . . .
 
Consider Paul's rocket mass heater.
 
subject: recent entries from the database
 
Similar Threads
retrieve data from huge result set
HTTP status 404
Search Limit ?
salary in UK for 4.2 years java/j2ee exp
CNN Article: US Tech market is very strong