• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to detect database eof

 
salman moin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a java program that insert data into SQL server but before inserting I querry the data base and want to find out that is the record already existed or not.
Please let me know how to know the EOF of database
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The resultSet.next() method returns false.
 
salman moin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Thomas it works.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic