Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/10/2008, 10:31
Avatar de stone_neo
stone_neo
 
Fecha de Ingreso: abril-2004
Ubicación: Peru
Mensajes: 438
Antigüedad: 20 años, 10 meses
Puntos: 15
Respuesta: Recuperar un campo de un RS

Código:
int total;
sql = "SELECT count(t.idTabla) as total From tu_esquema.Tabla t ";
ResultSet rs = st.executeQuery(sql);
while(rs.next()){
     total = rs.getInt("total");
}
__________________
Rubén Darío Huamaní Ucharima
Web : http://www.gorilla-soft.com
Usuario Linux #382 100 :-)