-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have done a lot of searching about this topic through Google but I have yet to find someone using getString() in the way that I am using it so I have not been able to fix this issue in the normal ways that are suggested.
What I am trying to do is to obtain all of the information from the database…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, I have a stored procedure in an Oracle 10g database, in my java code, i call it with:
CallableStatement cs = bdr.prepareCall("Begin ADMBAS01.pck_basilea_reportes.cargar_reporte(?,?,?,?,?); END;", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
cs.setInt(1, this.reportNumber);
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello
Does anyone know a better way of getting the number of rows in a Java resultset returned from a MySQL database?
I'm currently using this:
public static int getResultSetRowCount(ResultSet resultSet) {
int size = 0;
try {
resultSet.last();
size = resultSet.getRow();
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
package collabsoft.backlog_reports.c4;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.Statement;
//import collabsoft.backlog_reports.c4.Report;
public class Report {
private…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
package collabsoft.backlog_reports.c4;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.Statement;
//import collabsoft.backlog_reports.c4.Report;
public class Report {
private…
>>> More