If you do not specify the length of the stored procedure parameters in .NET

xiaoxiao2021-03-06  102

As of this example

Ops [9] = New OracleParameter ("CMT", System.Data.OracleClient.Oracletype.varchar); // 500);

OPS [9] .value = Comments;

If you do not specify the length of the stored procedure parameters, the incoming parameter value is "" (empty string), then it is definitely an error.

There are two ways:

1. Specifies the length of the stored procedure parameters.

2. No empty value.

Oracle-based

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

New Post(0)