OracleDataAdapter.update 问题

来源:互联网 发布:泰兴减速机厂js txjsj 编辑:程序博客网 时间:2024/05/22 09:00

//假设 以下对象已经完成。

// 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");

当oracletype.varchar 时 update 是成功的, 但oracletype.number 时 update 失败, 请问是什么问题?

谢谢!

 

原创粉丝点击