public class Sample {
public static void return_rset( ResultSet[] rset1 ) throws SQLException {
// Creates new connection back to same db.
Connection conn = DriverManager.getConnection(
"jdbc:ianywhere:driver=Sybase IQ;UID=DBA;PWD=sql" );
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery (
"SELECT ID " +
"FROM Customers" );
rset1[0] = rset;
}
}
}