aspose file tools*
The moose likes JDBC and the fly likes how to detect database eof Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to detect database eof " Watch "how to detect database eof " New topic
Author

how to detect database eof

salman moin
Greenhorn

Joined: Jan 19, 2001
Posts: 8
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

Joined: May 05, 2000
Posts: 13974
The resultSet.next() method returns false.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
salman moin
Greenhorn

Joined: Jan 19, 2001
Posts: 8
Thank you Thomas it works.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to detect database eof