S systop Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-13 #1 怎样从CachedRowSet中获得当前表名、记录总数、每个字段名、每个字段类型、复合主键的各个字段名?
C Chris Weng Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-13 #2 ResultSet rs = stmt.executeQuery("SELECT a, b, c FROM TABLE2"); ResultSetMetaData rsmd = rs.getMetaData(); int numberOfColumns = rsmd.getColumnCount(); rsmd.getTableName(int column) ; getColumnTypeName(int column) ; ..........更多自己去看API文档
ResultSet rs = stmt.executeQuery("SELECT a, b, c FROM TABLE2"); ResultSetMetaData rsmd = rs.getMetaData(); int numberOfColumns = rsmd.getColumnCount(); rsmd.getTableName(int column) ; getColumnTypeName(int column) ; ..........更多自己去看API文档