This commit is contained in:
EmmanuelTiamzon
2025-09-16 12:30:12 +02:00
parent 9e770734ac
commit 10529f6827

View File

@@ -11,8 +11,9 @@ public class Vote {
Connection cnx = DriverManager.getConnection("jdbc:mariadb://dwarves.iut-fbleau.fr/srivasta","srivasta", "Tiamzon2006");
try{
PreparedStatement req = cnx.prepareStatement("SELECT * FROM tp1_points;");
PreparedStatement req = cnx.prepareStatement("SELECT Votants, Points FROM tp1_points WHERE Compétiteur = "(?)";");
ResultSet rs = req.executeQuery();
req.setString(1, this.pays);
while(rs.next()) {
System.out.print(rs.getInt(2)+" ");