/**
     * Moves the cursor to the last row in
     * this <code>ResultSet</code> object.
     *
     * @return <code>true</code> if the cursor is on a valid row;
     * <code>false</code> if there are no rows in the result set
     * @exception SQLException if a database access error
     * occurs or the result set type is <code>TYPE_FORWARD_ONLY</code>
     * @since 1.2
     */
    boolean last() throws SQLException;
没实现,看看JDBC3.0中有没有!

解决方案 »

  1.   

    用这样的
        public ResultSet executeScrollQuery(String query) throws SQLException
        {
            stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
                                        ResultSet.CONCUR_UPDATABLE);
            rset = stmt.executeQuery(query);
            logger.debug("executeScrollQuery(" + query + ")");
            return rset;
        }