Bonsoir,
voici une partie du code que j'ai écrit:


statement.executeUpdate("INSERT INTO Versement ( Nom , Prenom, Date ,Prix_du_logement, Somme_versee , Nom_du_projet) VALUES('" + nom.getText() +"','" +prenom.getText() +"','" +date.getText() + "'," + "(SELECT Prix_du_logement FROM Client WHERE Nom='"+ nom.getText() +"'), " + verse.getText()+ "," + " (SELECT Nom_du_projet FROM Client WHERE Nom='" + nom.getText()+"')"+ ")");

JOptionPane.showMessageDialog(null, "Element ajouté");



pour le nom du projet ça marche mais le prix du logement ne s'ajoute pas dans la table sachant qu'il n y a aucune erreur qui s'affiche.