aspose file tools
The moose likes JDBC and Relational Databases and the fly likes how can i retrieve 3 rows out of 10 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "how can i retrieve 3 rows out of 10 " Watch "how can i retrieve 3 rows out of 10 " New topic
Author

how can i retrieve 3 rows out of 10

saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
hi,

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

thanks in advance


A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
Did you check the setFetchSize(int rows) method in Resultset. Is that what you want ?


Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how can i retrieve 3 rows out of 10