1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
// Création de la requète
String Requete = "SELECT Demande_Intervention.ID_Demande, Demande_Intervention.DateDemande, Criticite.Libelle_Criticite, Etat.Libelle_Etat " +
"FROM Demande_Intervention, Criticite, Etat " +
"WHERE Demande_Intervention.ID_Utilisateur = '1' AND Demande_Intervention.ID_Criticite=Criticite.ID_Criticite AND Demande_Intervention.ID_Etat=Etat.ID_Etat" +
"ORDER BY Demande_Intervention.ID_Demande DESC LIMIT 20";
// Execution et recupération du résultat
ResultSet mon_resultat = ConnexionBddMySQL().executeQuery(Requete);
// Traitemant du résultat
if(!mon_resultat.wasNull()){
while (mon_resultat.next()) {
ListeActions[i][1] = mon_resultat.getString(2);
ListeActions[i][2] = "Demande d'intervention";
ListeActions[i][3] = mon_resultat.getString(1);
ListeActions[i][4] = mon_resultat.getString(3);
ListeActions[i][5] = mon_resultat.getString(4);
i++;
}
} |
Partager