• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting first element of Resultset

 
vivek, tiwari
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi vivek, tiwari:
Doesn't rs.next() help you??

------------------
Muhammad Naveed Azhar
(naveed@hotmail.com)
 
ravi janap
Ranch Hand
Posts: 389
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if ( rs.next() )
{
you are at the first row of resultset
}
 
dharmeshc
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
depends whether you are using JDBC which supports a scrollable resultset!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic