英语翻译strQuery = "select * from suppliers where CompanyName='"+m_sCompany+"'";theApp.ADOExecute(theApp.m_pADOSet,strQuery);int iCount = theApp.m_pADOSet->GetRecordCount();if ( =iCount ){AfxMessageBox(_T("已经存在此公司记录!"),MB_ICONEX

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/20 22:15:08

英语翻译strQuery = "select * from suppliers where CompanyName='"+m_sCompany+"'";theApp.ADOExecute(theApp.m_pADOSet,strQuery);int iCount = theApp.m_pADOSet->GetRecordCount();if ( =iCount ){AfxMessageBox(_T("已经存在此公司记录!"),MB_ICONEX
英语翻译
strQuery = "select * from suppliers where CompanyName='"+m_sCompany+"'";
theApp.ADOExecute(theApp.m_pADOSet,strQuery);
int iCount = theApp.m_pADOSet->GetRecordCount();
if ( =iCount )
{
AfxMessageBox(_T("已经存在此公司记录!"),MB_ICONEXCLAMATION);
return;
}
这一段是什么东西啊,没学过vc,

英语翻译strQuery = "select * from suppliers where CompanyName='"+m_sCompany+"'";theApp.ADOExecute(theApp.m_pADOSet,strQuery);int iCount = theApp.m_pADOSet->GetRecordCount();if ( =iCount ){AfxMessageBox(_T("已经存在此公司记录!"),MB_ICONEX
可以找些论文网的客服帮助你,www.lunwen77.cn的客服态度还不错,可以去看看

第一句是查询语句:从suppliers 数据表中查找字段CompanyName为"+m_sCompany+"'的.
第二句打开数据库用查询语句查询
第三句定义icout为查询到的满足条件的个数
第四句开始判断,如果查询到的个数不为0,就弹出消息:("已经存在此公司记录!)

一段很简单的代码,如果一个单词的给你翻译过来就没意义了。你慢慢去上机领悟这些语句的作用更好~