title: How can I delete a row from an Oracle database in C#?
body: <p>I have a problem when I want to delete an entire row based on <code>id_curse</code>. This is my code and this is my error I get:</p>
  
  <blockquote>
    <p>An unhandled exception of type 'Oracle.DataAccess.Client.OracleException' occurred in Oracle.DataAccess.dll.</p>
  </blockquote>
  
  <p>Additional information:</p>
  
  <blockquote>
    <p>External component has thrown an exception.</p>
  </blockquote>
  
  <p>Can you help me to fix the problem? I think the code from the SQL-command is not good for this.</p>
  
  <pre><code>private void button3_Click(object sender, EventArgs e)
  {
      Oracle.DataAccess.Client.OracleConnection conn = new Oracle.DataAccess.Client.OracleConnection(provider);
      Oracle.DataAccess.Client.OracleCommand cmd = new Oracle.DataAccess.Client.OracleCommand();
  
      conn.Open();
      cmd = new Oracle.DataAccess.Client.OracleCommand(" DELETE * from CURSE  WHERE ID_CURSA  = '" +   textBox1.Text + "'", conn);
      cmd.ExecuteNonQuery();
  }
  </code></pre>