This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to detect database eof
 
Similar Threads
RandomAccessFile
EOF
error while reading objects from file
Loading a large file into database
BufferReader.read() int