0

我正在使用OleDbDataReader,但它仅读取 95,526 条记录中的 29,991 条:

OleDbCommand command = new OleDbCommand("select * from [data$]", connection);
using (OleDbDataReader dr = command.ExecuteReader())
{
    while (dr.Read())
    {
        c++;
        row1Col0 = dr[0].ToString();

    }
    Console.WriteLine(c);
}

为什么它不读取所有记录?

4

0 回答 0