comment formuler une requete pour l'insertion d'une date ??
//ceci marche
PreparedStatement pstmt=con.prepareStatement(
"INSERT INTO reservation (type,nomClient)"
+" VALUES (?,?)");
pstmt.setInt(1,unbmat.type);
pstmt.setString(2,unbmat.nomClient);
/*ceci ne marche pas
PreparedStatement pstmt=con.prepareStatement(
"INSERT INTO reservation (type,nomClient,date-heure)"
+" VALUES (?,?,?)");
pstmt.setInt(1,unbmat.type);
pstmt.setString(2,unbmat.nomClient);
//Date ladate = new Date(2000,10,3);//Date.valueOf(unbmat.date);
//pstmt.setDate(3,ladate);
//pstmt.setTimestamp(3,new Timestamp(2005,10,25,1,1,0,0));
//pstmt.setString(3,"26/2/83 10:10");
*/
pstmt.executeUpdate();
moi, le seul, l'unique, ZinZin
