请教关于CRecordset使用过程中的一个问题? 可否说明白一写,或贴出你的代码来 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 CDatabase * pDatabase=new CDatabase();pDatabase->OpenEx(_T("DSN=TouchAmis;UID=khfw;"),CDatabase::openReadOnly|CDatabase::useCursorLib|CDatabase::noOdbcDialog);CRecordset * pSet=new CRecordset(pDatabase); pSet->m_strFilter.Format("t00salesno='%s'and t03appdate>={d'%s'} and t03appdate<={d'%s'} and t03businesstype='%s'", m_SalesNo,m_StartDate,m_EndDate,Type);pSet->Open(CRecordset::forwardOnly,"select * from t03_policyperday",CRecordset::readOnly);if (pSet->IsEOF()){return;}......pSet->Close()delete pSet;pDatabase->Close();delete pDatabase;我使用这种方式连接的数据库,可是查出来的数据,和数据库中的数据相比,总有一些查不出来,不我用别的工具却全能看见,真不知道为什么??? 请各位高手赐教,谢谢!!!!! 紧急求助!!!!!字符串分割的 点菜系统怎么做 读过的帮我评评<MFCWindows程序设计>及<深入浅出MFC> 制作输入法的问题 vc中的怪问题 各位大神求解VC 哪里有"windows2000编程技术内幕" 光盘代码下载?多谢 请问 void UpdateDialogControls()函数怎么用……(******) 在类中自定义的函数不能调用,不知道是为什么----网上众高手帮忙 在一个单文档中,怎样可以播动画的同时播放声音文件我不用MIC; 请教一个 CEdit 的问题,高手请进。 有人要写书吗?请与我联系,我认识出版社的
pDatabase->OpenEx(_T("DSN=TouchAmis;UID=khfw;"),CDatabase::openReadOnly|CDatabase::useCursorLib|CDatabase::noOdbcDialog);
CRecordset * pSet=new CRecordset(pDatabase);
pSet->m_strFilter.Format("t00salesno='%s'and t03appdate>={d'%s'} and t03appdate<={d'%s'} and t03businesstype='%s'",
m_SalesNo,m_StartDate,m_EndDate,Type);
pSet->Open(CRecordset::forwardOnly,"select * from t03_policyperday",CRecordset::readOnly);
if (pSet->IsEOF())
{
return;
}
......
pSet->Close()
delete pSet;
pDatabase->Close();
delete pDatabase;我使用这种方式连接的数据库,可是查出来的数据,和数据库中的数据相比,总有一些查不出来,不我用别的工具却全能看见,真不知道为什么???