Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class verfimdp{
- public void main(String[] args){
- String pilote = "com.mysql.jdbc.Driver";
- try{
- Class.forName(pilote);
- Connection connexion = DriverManager.getConnection("jdbc:mysql://localhost/test","root","pass");
- Statement instruction = connexion.createStatement();
- ResultSet resultat = instruction.executeQuery("SELECT * FROM Mot de passe");
- while(resultat.next()){
- //à rajouter
- }
- }
- catch (Exception e){
- System.out.println("echec pilote : "+e);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement