ResultSet 获得列名
?
ResultSet rs = stmt.executeQuery("SELECT * FROM TABLE");ResultSetMetaData rsmd = rs.getMetaData();int count=rsmd.getColumnCount();String[] name=new String[count];for(int i=0;i<count;i++)name[i]=rsmd.getColumnName(i+1);