有没有类似编辑记录集的函数??我在MSDN上没有找到类似的函数
只找到AddNew(),没有找到Edit()啊
以下写法编译器提示没有Edit这个函数啊
_RecordsetPtr m_pRecordset_temp;
m_pRecordset_temp->Edit();
m_pRecordset_temp->Update();编辑应该用什么函数呢?
只找到AddNew(),没有找到Edit()啊
以下写法编译器提示没有Edit这个函数啊
_RecordsetPtr m_pRecordset_temp;
m_pRecordset_temp->Edit();
m_pRecordset_temp->Update();编辑应该用什么函数呢?
vValue = strTemp;
m_pRecordset_temp->Fields->Item["SendStat"]->Value = vValue;
m_pRecordset_temp->Update();
m_pRecordset_temp->Close();
CString strSQL;
_variant_t Affected;
strSQL.Format("update table set 字段名=%d where 一个条件",iSendStat);
m_Connection->Execute(_bstr_t(strSQL),&Affected,adCmdText);