结果集可以嵌套吗?
fgcsh 2002-04-23 08:13:08 如:
....
....
ResultSet rs=stmt.executeQuery("select * from a");
while(rs.next()){
....
....
ResultSet rs1=stmt.executeQuery("select * from b");
while(rs1.next()){
...
...
}
rs1.close();
}
rs.close();
....
....
这样可以吗?