OracleDataAdapter.Update problem

zhaozj2021-02-16  99

/ / Suppose the following objects have been completed.

// myConnection

// mycommand

// myadapter

// myDataSet

Mycommand.commandtext = "Update Tablename Set Col1 =: aa where col1 =: Oldaa";

MyCommand.Parameters.Add (": aa", oracletype.number, 10, "col1");

MyCommand.Parameters.Add (": Oldaa", ORACLETYPE.NUMBER, 10, "COL1"); MyCommand.Parameter [": aa"]. Sourceversion = ... Origin; ... myadapter.Update (MyDataSet, "TABLENAME "); When Oracletype.varchar is Update is successful, but the update failed when oracletype.number, what is the problem? Thank you!

转载请注明原文地址:https://www.9cbs.com/read-14346.html

New Post(0)