我在Oracle软件包中有这个程序
procedure SELECTCPT
(
IdeAseg VARCHAR2,
CodTrata VARCHAR2,
FecOcurr DATE,
msj_error out varchar2
)
我从C#发送了这样的值:
OracleCommand com = new OracleCommand();
com.CommandText = "PR_SINIESTRO_EN_VERDE.SELECTCPT";
com.CommandType = CommandType.StoredProcedure;
com.Connection = con;
com.Parameters.Add("IdeAseg", OracleDbType.Varchar2,50).Value = "62340003";
com.Parameters.Add("CodTrata", OracleDbType.Varchar2,50).Value = "9932";
com.Parameters.Add(new OracleParameter("FecOcurr", OracleDbType.Date)).Value = "22/01/16";
com.Parameters.Add(new OracleParameter("msj_error", OracleDbType.Varchar2, 200)).Direction = ParameterDirection.Output;
com.ExecuteNonQuery();
但由于某种原因,该程序没有看到完整值62340003
,只需要6234
程序中有没有办法让它使用完整的值?