调用存储过程时在execute的时候出现精度错误的信息,存储过程中有一个参数是decimal(18, 2),那么在插入参数时应该怎么做啊?---------------------一下是插入参数的代码-----------------------
pScore = m_pCommand -> CreateParameter
(
_bstr_t( "Score" ),
adNumeric,
adParamInput,
v_Score
);
m_pCommand -> Parameters -> Append(pScore); 然后是输入数据是:0.00
pScore = m_pCommand -> CreateParameter
(
_bstr_t( "Score" ),
adNumeric,
adParamInput,
v_Score
);
m_pCommand -> Parameters -> Append(pScore); 然后是输入数据是:0.00
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货