Bonjour,
Quelqu'un sait il comment enregistrer le contenu d'une liste box dans une requête en oracle ? voici ce que j'ai écris :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
System.Data.OracleClient.OracleTransaction trans = conn.BeginTransaction();
string my_Query = "UPDATE CHUL2.VARIABLE SET CHAMPNOM =" + DropDownList4.SelectedItem.ToString();
System.Data.OracleClient.OracleCommand cmd_2 = new System.Data.OracleClient.OracleCommand(my_Query, conn);
cmd_2.CommandType = System.Data.CommandType.Text;
cmd_2.Transaction = trans;
cmd_2.ExecuteNonQuery();
trans.Commit();
cmd_2.Dispose(); |
Mais ca ne fonctionne pas, j'obtiens cette erreur :
"ORA-00933: SQL command not properly ended"
Merci de bien vouloir m'aider.