This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
jQuery in Action, 2nd edition
 
subject: how to detect database eof