ORA-01438:大于该列ORA-06512允许的指定精度的值:在第4行

时间:2016-12-15 12:16:44

标签: c# oracle datatable

当我尝试使用数据表保存数据时,从C#代码,我得到上述错误。

  

异常:ORA-01438:大于此列ORA-06512允许的指定精度的值:第4行

但是当我获取第4行值并手动插入数据库时​​,它会插入并输出任何错误。

我的代码,我收到异常:

 adapter.SelectCommand = new OracleCommand(sqlSelect, connection, transaction);

                adapter.InsertCommand = insertCommand;
                adapter.InsertCommand.Connection = connection;
                adapter.InsertCommand.Transaction = transaction;

                adapter.UpdateCommand = updateCommand;
                adapter.UpdateCommand.Connection = connection;
                adapter.UpdateCommand.Transaction = transaction;

                adapter.DeleteCommand = deleteCommand;
                adapter.DeleteCommand.Connection = connection;
                adapter.DeleteCommand.Transaction = transaction;

                if (oracleRowUpdatingEventHandler != null)
                    adapter.RowUpdating += oracleRowUpdatingEventHandler;

                adapter.Update(dataTable);

感谢。

0 个答案:

没有答案