Bonjour tout le monde
Je veux effacer un enregistrement de la base qui correspond au matricule saisie dans un textbox d'un formulaire!

J'ai essayé ce code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 string strRequete = "Delete FROM UTILISATEUR WHERE  MATRICULE1_EMP =:textBox10";
 
            OracleCommand oCommand = new OracleCommand(strRequete, oConnection);
 
            try
            { //oCommand.CommandText = strRequete;
               // oCommand.Parameters.Add(":MATRICULE1_EMP", OracleType.VarChar).Value = (textBox10.Text != string.Empty) ? textBox10.Text : String.Empty; ;
                     int row = oCommand.ExecuteNonQuery();
 
                     MessageBox.Show("utilisateur est supprimé", "confirmation suppression",row);
            }
 
            catch
            {MessageBox.Show("erreur de suppression", "teste suppression");
                }
un message d'erreur s'affiche
ORA-01036: illegal variable name/number
Merci de m'aider