Code_Gestion_Etudiants_Java_MySQL
Code_Gestion_Etudiants_Java_MySQL
INSERT INTO etudiants (nom, age) VALUES ('Ali', 22), ('Sami', 24), ('Lina', 21);
while (rs.next()) {
model.addRow(new Object[]{
rs.getInt("id"),
rs.getString("nom"),
rs.getInt("age")
});
}
con.close();
} catch (Exception e) {
e.printStackTrace();
}
}
Ajouter un etudiant
Modifier un etudiant
Supprimer un etudiant
while (rs.next()) {
model.addRow(new Object[]{
rs.getInt("id"),
rs.getString("nom"),
rs.getInt("age")
});
}
con.close();
} catch (Exception e) {
e.printStackTrace();
}
}