ORA-00933: SQL command not properly ended
Résolu
BelleRose2
Messages postés
7
Date d'inscription
Statut
Membre
Dernière intervention
-
nichola Messages postés 111 Date d'inscription Statut Membre Dernière intervention -
nichola Messages postés 111 Date d'inscription Statut Membre Dernière intervention -
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);
A voir également:
- Ora-00933: la commande sql ne se termine pas correctement
- Invite de commande - Guide
- Votre appareil ne dispose pas des correctifs de qualité et de sécurité importants - Guide
- Commande terminal mac - Guide
- Supprimer historique commande amazon - Forum Consommation & Internet
- Je commence la nuit et je termine le matin ✓ - Forum Loisirs / Divertissements
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 +"%');",
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 +"%');",
Merci :)