problème avec insert into
bonsoir j'ai un porblème avec une requette voila
Code:
1 2 3 4 5 6 7 8
|
int nbb = instruction.executeUpdate(
"INSERT INTO louer (numero,code,date_de_sortir,m_paye,date_entrer) VALUES ( '" +
tcode.getText() + "','" + t1.getText() + "', '" +
df.format(date1) + "','" + d + "')"); |
cette requette ne marche pas pour (date_entrer) je voulais inserer rien dans la table pas une valeur mais comment exprimer ça par ça ne marche pas
Code:
1 2 3 4 5 6 7
|
int nbb = instruction.executeUpdate(
"INSERT INTO louer (numero,code,date_de_sortir,m_paye,date_entrer) VALUES ( '" +
tcode.getText() + "','" + t1.getText() + "', '" +
df.format(date1) + "','" + d + "," + " "+"')"); |
merci