ORA-00933: SQL command not properly ended
Résolu
BelleRose2
Messages postés
10
Statut
Membre
-
nichola Messages postés 113 Statut Membre -
nichola Messages postés 113 Statut Membre -
Bonjour,
je travaille avec windows forms sous oracle. la ligne suivante m'affiche une erreur disant que cette commande " not properly ended" quelqu'un peut m'aider SVP :(
OleDbCommand comdatabase = new OleDbCommand("select * from bi_dictionnaire where CHAMPS='" + textType.Text + "' and LIBELLE_FR LIKE '"+ ID2.Text +"%');", condatabase);
je travaille avec windows forms sous oracle. la ligne suivante m'affiche une erreur disant que cette commande " not properly ended" quelqu'un peut m'aider SVP :(
OleDbCommand comdatabase = new OleDbCommand("select * from bi_dictionnaire where CHAMPS='" + textType.Text + "' and LIBELLE_FR LIKE '"+ ID2.Text +"%');", condatabase);
2 réponses
-
Salut,
Je suis pas un expert Oracle ni Forms, mais il me semble qu'il manque un '%' après le LIBELLE_FR_ LIKE non ?
Ca devrait être çà plutot :
OleDbCommand comdatabase = new OleDbCommand("select * from bi_dictionnaire where CHAMPS='" + textType.Text + "' and LIBELLE_FR LIKE '%"+ ID2.Text +"%');", -
L'erreur m'apparaît encore avec cette ligne :\
string strCommand = "UPDATE users SET mot_de_passe=?mot_de_passe WHERE mot_de_passe=" + textBox1.Text;
:\