Affichage des donnees dans une matrice

Fermé
ayaméh Messages postés 1 Date d'inscription lundi 20 août 2012 Statut Membre Dernière intervention 20 août 2012 - 20 août 2012 à 11:40
Bonjour,

j'ai un probleme d'affichage des donnees d'une base de donnees d'une matrice mais pas de resultat voila mon code j'espere quelqu'un peux me aider merci
int tfij(int id_term,int id_doc) throws SQLException, ClassNotFoundException
{
url = "jdbc:postgresql://localhost:5433/index";

Connection() ;
int tf = 0 ;

ResultSet resultSet = statement.executeQuery("SELECT \"TF_ij\" FROM \"DOC\" WHERE \"DOC\".\"ID_TERM\" = " +id_term+ " AND \"DOC\".\"ID_DOC\" = "+id_doc+ "");

// Get the number of rows from the result set
while(resultSet.next())
{
tf = resultSet.getInt("TF_ij");
}
return tf;

}
le probleme est le resultat affiche des 0 merci svp c urgent