| 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: 32604
|
|
|
Or if you have an auto-increment column, "id", try select . . . where id = max(id) . . .
|
 |
 |
|
|
subject: recent entries from the database
|
|
|