MySQL - select dentro de otro

 
Vista:

select dentro de otro

Publicado por Gloria (3 intervenciones) el 23/10/2007 19:03:32
Hola

Tengo el siguiente código y me dice que la operacion no esta permitida porque se ha cerrado el Resulset. Gracias

while (R_a.next())
{
StringBuffer etiqueta = new StringBuffer();
etiqueta.append(" "+R_a.getInt ("id_a"));
etiqueta.append(" "+R_a.getString ("id_t"));

R_d_a=s.executeQuery("SELECT tipus.nom from amb,tipus where tipus.id_=amb.id_t and amb.id_a="+R_a.getInt ("id_a"));
R_d_a.beforeFirst();
R_d_a.next();
etiqueta.append(" "+R_d_a.getString ("tipus.nom"));

listModel8.addElement(etiqueta.toString());
}

Gloria
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder