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");
} |
Partager