Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting the last three added rows to a table HSQLDB

 
Sammy Bill
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

How can i retrieve the last three added rows to a table?
I m not using any auto-increment id.

Thanks
Oussama
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34378
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not reliably. You can hope they are stored in that order in the table, but that isn't guaranteed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic