File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes getting first element of Resultset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "getting first element of Resultset" Watch "getting first element of Resultset" New topic

getting first element of Resultset

vivek, tiwari

Joined: Apr 13, 2001
Posts: 3
hi guys..
i created a resultset rs
How can i get the first element of rs and does it support any command like rs.moveNext() or rs.moveLast()...
Kindly help.....
n thanks for taking a look at this...
Naveed Azhar

Joined: Apr 15, 2001
Posts: 5
Hi vivek, tiwari:
Doesn't help you??

Muhammad Naveed Azhar

Muhammad Naveed Azhar<BR>(
ravi janap
Ranch Hand

Joined: Nov 04, 2000
Posts: 389
if ( )
you are at the first row of resultset


Joined: Apr 16, 2001
Posts: 8
depends whether you are using JDBC which supports a scrollable resultset!
I agree. Here's the link:
subject: getting first element of Resultset
It's not a secret anymore!