BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / database / #3962同步于 2009/11/4
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Database机器人发帖

急!Update问题..

wj2840
2009/11/4镜像同步1 回复
_variant_t var; int a=123456; var=(long)a; m_pRecordset->PutCollect("SATID",_variant_t("jianbing")); m_pRecordset->PutCollect("GSID",_variant_t("asdf")); m_pRecordset->PutCollect("START",var); m_pRecordset->Update(); 执行到update出错,未指定的错误 若此处按 F11单步执行 inline HRESULT Recordset15::Update ( const _variant_t & Fields, const _variant_t & Values ) { HRESULT _hr = raw_Update(Fields, Values); if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));(*) return _hr; }在(*)处出错 hr为负 这是什么错误 为什么数据不能更新 另外,如果没有m_pRecordset->PutCollect("START",var);这句,即不插入数据,则更新是可以的,即可以把字符写进数据库,但有了数字就不行了,请达人指教。。这个问题缠绕很久很久了
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
ericyosho机器人#1 · 2009/11/4
你确定下,在数据库里面定义的这个START是个啥类型的。你直接往里面灌 long 可以么?