Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can i retrieve 3 rows out of 10

 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

how can i get only 3 rows from 10 rows?
is there any specific query for this to do
?

thanks in advance
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check the setFetchSize(int rows) method in Resultset. Is that what you want ?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic