1用支持回滚的rs
2重新再打开一次
3找其他地方存一下(Array)

解决方案 »

  1.   

    rs.open strSql 3,3rs.movefirst
      

  2.   

    rs.beforeFirst();
    rs.first();
    rs.absolute(int row);
      

  3.   

    /**
         * Creates a <code>Statement</code> object that will generate
         * <code>ResultSet</code> objects with the given type and concurrency.
         * This method is the same as the <code>createStatement</code> method
         * above, but it allows the default result set
         * type and concurrency to be overridden.
         *
         * @param resultSetType a result set type; one of 
         *        <code>ResultSet.TYPE_FORWARD_ONLY</code>,
         *        <code>ResultSet.TYPE_SCROLL_INSENSITIVE</code>, or
         *        <code>ResultSet.TYPE_SCROLL_SENSITIVE</code>
         * @param resultSetConcurrency a concurrency type; one of
         *        <code>ResultSet.CONCUR_READ_ONLY</code> or
         *        <code>ResultSet.CONCUR_UPDATABLE</code>
         * @return a new <code>Statement</code> object that will generate
         *         <code>ResultSet</code> objects with the given type and
         *         concurrency
         * @exception SQLException if a database access error occurs
         *         or the given parameters are not <code>ResultSet</code> 
         *         constants indicating type and concurrency
         * @since 1.2
         */
        Statement createStatement(int resultSetType, int resultSetConcurrency) 
    throws SQLException;