Advertisement
Guest User

Yohan c'est un nom à coucher dehors ça

a guest
Dec 6th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. package fr.btssnir;
  2.  
  3. import java.sql.Connection;
  4. import java.sql.DriverManager;
  5. import java.sql.ResultSet;
  6. import java.sql.SQLException;
  7. import java.sql.Statement;
  8. import java.util.ArrayList;
  9.  
  10. /**
  11. *
  12. * @author tdirani
  13. */
  14. public class Bdd {
  15.  
  16. Connection connection;
  17. Statement etat;
  18. AfficheurLCDPerso afficheur;
  19.  
  20. public Bdd(AfficheurLCDPerso lcd) throws SQLException, ClassNotFoundException {
  21. this.afficheur = lcd;
  22. Class.forName("com.mysql.jdbc.Driver");
  23. this.connection = DriverManager.getConnection("jdbc:mysql://localhost/concurrents", "root", "");
  24. this.etat = connection.createStatement();
  25. }
  26.  
  27. public void dossard(int dossardC) throws SQLException {
  28. ResultSet rs = etat.executeQuery("SELECT*FROM identification WHERE dossard='" + dossardC + "'");
  29.  
  30.  
  31. }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement