Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / March 2004

Tip: Looking for answers? Try searching our database.

Strange ResultSet.getRow()

Thread view: 
max - 11 Mar 2004 14:06 GMT
HI all,

I have 2 record in a table name "item" in mysql database, and use
RecordSet to retrieve that 2 record.

i try to get the number of Result using the below method :

result.last()
int rowCount = result.getRow();

according to Javadoc, it suppose return the exact number of row that the
recordset content. But strangely, the rowCount is 1. After I add a
record to "item", the rowCount is 2 (but i use mysql console, it show
the number of record suppose have 3).

Do anyone know how to solve this??

Thanks.
Max.
Mark Matthews - 11 Mar 2004 15:07 GMT
> HI all,
>
[quoted text clipped - 15 lines]
> Thanks.
> Max.

Max,

What version of the JDBC driver are you using?

    -Mark

Signature

Mr. Mark Matthews
MySQL AB, Software Development Manager, J2EE and Windows Platforms
Office: +1 708 332 0507
www.mysql.com

Meet the MySQL Team! April 14-16, 2004 http://www.mysql.com/uc2004/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.