Download Rs2xml.jar File: Free !!install!!
public class TestRs2xml public static void main(String[] args) throws SQLException Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test", "root", ""); Statement st = conn.createStatement(); ResultSet rs = st.executeQuery("SELECT * FROM users"); TableModel tm = DbUtils.resultSetToTableModel(rs); System.out.println("Columns: " + tm.getColumnCount()); // Should work
The RS2XML.jar library has a wide range of applications, including: free download rs2xml.jar file