update
This commit is contained in:
@@ -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)+" ");
|
||||
|
Reference in New Issue
Block a user