1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| try{
con.createStatement().executeUpdate("INSERT INTO Message (IdentifiantForum, IdParametre , Titre, Importance, Auteur, Date, NbMessages, NbVus, DateRecolte) " +
"VALUES (" + NewDiscussion.GetIDDiscussForum() +
"," + NewDiscussion.GetIdParam() +
"," + NewDiscussion.GetTitre() +
"," + NewDiscussion.GetTypeImportance() +
"," + NewDiscussion.GetAuteur() +
"," + NewDiscussion.GetDate() +
"," + NewDiscussion.GetNombreMessageARecup() +
"," + NewDiscussion.GetNombreVus() +
"," + NewDiscussion.GetDateRecolte() +
");"
);
}
catch(SQLException sqlE){
//GESTION D'ERREUR
}
//J'aimerais recuperer l'identifiant ici!
} |
Partager