How to count rows and fields Newbe
Hello
How can i count rows and fields when I use JDBC to conect to MySQL
In PHP it can look like this
$result = mysql_query($sqlSats);
$number_rows = mysql_num_rows($result);
$number_fields = mysql_num_fields($result);
but how can you do something like this in java
I am using:
- mysql-connector-java-3.0.16-ga
- jdk-1_5_0_01-linux-i586
- mysql Ver 11.18 Distrib 3.23.58, for redhat-linux-gnu (i386)
Best regards
\Micke
Subject
Written By
Posted
How to count rows and fields Newbe
January 19, 2005 04:57PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.