在java类字典里查一下,不就有了?

解决方案 »

  1.   

    他是由驱动程序实现的,查查看哪个驱动实现了ChachedRowSet借口,orcale 的classes14.jar好象实现了一个RowSet
      

  2.   

    .........................
    ResultSet rs = null;........................
    // Create and initialize Cached RowSet object.
    OracleCachedRowSet ocrs = new OracleCachedRowSet();     
          
    // Create a string that has the SQL statement that gets all the records.
    String sqlString = "SELECT empno FROM emp";
    // Create a statement, resultset objects.
    stmt = conn.createStatement();
    rs = stmt.executeQuery(sqlString);
    // Populate the Cached RowSet using the above Resultset.
    ocrs.populate(rs);
          
    // Point to the last row in Cached RowSet.
    ocrs.last();      // Get the row position which is also the number of rows in the Cached
    // RowSet.
    int rowcount = ocrs.getRow();System.out.println("Total rows for the query using Cached RowSet: "+
                       rowcount);              
    // Close the Cached Rowset object.
    if (ocrs != null) 
      ocrs.close();.............