Then when trying to access to your database: try { Class.forName("com.mysql.jdbc.Driver"); //loading your JDBC driver Connection connect = DriverManager.getConnection("jdbc:mysql:databasename”, “login”, “password”); Statement statement = connect.createStatement(); // Result set get the result of the SQL query ResultSet resultSet = statement.executeQuery("select * from table_name"); } catch (SQLException e) { throwe; }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment