Ver Mensaje Individual
  #11 (permalink)  
Antiguo 16/08/2006, 09:45
Malebolgia
 
Fecha de Ingreso: diciembre-2004
Mensajes: 2
Antigüedad: 20 años, 3 meses
Puntos: 0
Cita:
Iniciado por hamstelfo Ver Mensaje
Por si le sirve a alguien, a mi tp me iba el getFetchSize, pero aki esta la solucion

r=st.executeQuery(sql);
r.last();
int numRows = r.getRow();
r.beforeFirst(); // esto te lo deja como al principio
out.print(numRows);
Recordar declarar el Statement de la siguiente forma:
Código:
Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
                        ResultSet.CONCUR_READ_ONLY ) ;

Saludos
Malebolgia