Subject | [Firebird-Java] One PreparedStatment many ResultSet |
---|---|
Author | Евгений Путилин |
Post date | 2003-10-29T12:25:43Z |
Hi All
Is next code is valid?
PreparedStatment ps=connection.prepare("...........");
ResultSet rs1,rs2;
ps.setInt(1,1);
rs1=ps.executeQuery();
ps.setInt(1,2);
rs2=ps.executeQuery();
rs1.next();
rs2.next();
if(rs1.getInt(1)!=rs2.getInt(1))
Is one PreparedStatment contanes many open ResultSet? This range of
JDBC or FirBird
Eugeney Putilin.
Is next code is valid?
PreparedStatment ps=connection.prepare("...........");
ResultSet rs1,rs2;
ps.setInt(1,1);
rs1=ps.executeQuery();
ps.setInt(1,2);
rs2=ps.executeQuery();
rs1.next();
rs2.next();
if(rs1.getInt(1)!=rs2.getInt(1))
Is one PreparedStatment contanes many open ResultSet? This range of
JDBC or FirBird
Eugeney Putilin.