Answer : RESULTSET rs = ......ResultSetMetaData RSMD = rs.getMetaData();int numCols = rsmd.getColumnCount();for (int i = 1; i <= numCols; i++) {System.out.println("[" + i + "]" + rsmd.getColumnName(i) + " {" + rsmd.getColumnTypeName(i) + "}");}
Your experience on this site will be improved by allowing cookies. Read Cookie Policy