How to execute a Query with the previous Execute query result While loop.
Resultset rs = con.excuteQuery(Query1.toString);
While(rs.next()){
Resultset rs1 = con.excuteQuery(Query2.toString);
while(rs1.next()){
}
}
once the second Query executed then previous rs can not be executed. For Ex: 1st Query have 2 records if the second query executed then the 1st Qry did not fetch the 2nd record.
please give the solution as soon as possible.
thanks.