strCrc.Format("exists (select * from Dm_Clientbk where id='%s')",\
strRecv.Right(strRecv.GetLength()-3));
现要在应用程序中检查该记录(select * from Dm_Clientbk where id='%s',\
strRecv.Right(strRecv.GetLength()-3))是否存在??
strRecv.Right(strRecv.GetLength()-3));
现要在应用程序中检查该记录(select * from Dm_Clientbk where id='%s',\
strRecv.Right(strRecv.GetLength()-3))是否存在??
{
m_pRecordset->Open(strClientbk.AllocSysString(),
theApp.m_pConnection.GetInterfacePtr(),
adOpenDynamic,adLockOptimistic,adCmdText);
}
catch (_com_error *e)
{
AfxMessageBox(e->ErrorMessage());
}
用这个执行可以吗??
if( m_pRecordset->IsEOF() )
...// empty
else
...// not empty