strSql.Format(_T("delete from %s where LogId = '%s'"),OriginalBase.m_sTable,sDeleteArray[i]->GetAt(0));
m_ConnectionPtr->Execute((_bstr_t)strSql,NULL,AdoNS::adCmdText);
strSql.Format(_T("delete from %s where LogId = '%s'"),OriginalBase.m_sTable,sDeleteArray[i]->GetAt(0)); m_ConnectionPtr->Execute((_bstr_t)strSql,NULL,AdoNS::adCmdText); 如上代码删除数据库中的记录,LogId为表的主键。当表中的记录多(40W左右吧),上面的语句执行花费的时间比较多。有什么办法可以提高删除语句的执行效率吗?谢谢了!