code java :
public static void affiche_base(String url,Connection con) throws SQLException{
con = DriverManager.getConnection(url, "root", "");
System.out.println("Connection is done");
Statement mystmt = con.createStatement();
ResultSet myrs = mystmt.executeQuery("select * from presonne");
System.out.println("---------------------------");
while(myrs.next()){
System.out.println("| "+myrs.getString("nom")+" | "+myrs.getString(2)+" | "+myrs.getInt(3)+" |");
System.out.println("--------------------------");
}
}
On this page of the site you can watch the video online connect java with sql (jdbc) Statement with a duration of hours minute second in good quality, which was uploaded by the user Quick Coding Tips 16 March 2017, share the link with friends and acquaintances, this video has already been watched 431 times on youtube and it was liked by 6 viewers. Enjoy your viewing!