佚名通过本文主要向大家介绍了数据库表添加字段,向数据库表中添加数据,数据库添加表,数据库表中添加字段,数据库表中添加数据等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 急:给数据库添加记录,表中多了一个记录,但是无显示。
描述:
解决方案1:
描述:
代码
try
{
if(!theApp.m_pRecordset->Supports(adAddNew))
return;
theApp.m_pRecordset->AddNew();
theApp.m_pRecordset->PutCollect( "sName", (_variant_t)m_stdName);
theApp.m_pRecordset->PutCollect( "sNo", (_variant_t)m_stdID);
theApp.m_pRecordset->PutCollect( "sSex", (_variant_t)m_stdSex);
theApp.m_pRecordset->Update();
theApp.m_pRecordset->Close();
iCount++;
}
catch(_com_error &error)
{
AfxMessageBox(error.ErrorMessage()); //显示错误信息
}
没分了。很不好意思。望大虾见谅!
解决方案1:
显示的代码呢?