TADOQuery遍历速度?
TADOQuery有没有办法提高遍历速度
下面的代码,在3000多行记录,8列,就要0.5秒左右,那上万了就更受不了了
int nRowCount = ADOQuery1->RecordCount;
int nColCount = ADOQuery1->Fields->Count;
ADOQuery1->First();
for(int irow = 0; irow < nRowCount; irow++)
{
for(int icol = 0; icol < nColCount; icol++)
{
m_pDataTable[irow][icol] = ADOQuery1->Fields->Fields[icol]->Value;
}
ADOQuery1->MoveBy(1);
}