Bonjour je voudrais inserer une ligne dans un tableau mais ça ne arche pas ma base de donne s'appelle mourad et le tableau users voila le code
import java.sql.*;
public class test2 {
public static void main(String[]arg){
Connection connection = null;
try{ Class.forName("com.mysql.jdbc.Driver");
String url ="jdbc:mysql://localhost:3306/mourad";
String user = "root";
String password = "";
connection = DriverManager.getConnection(url, user, password);
Statement stmt = connection.createStatement();
String sql = "INSERT INTO users (id,name, address) VALUES (1,'Foo', 'Street')";
stmt.execute(sql);
connection.close();}catch(Exception e ){
}
}
}

