我正在使用OleDbDataReader
,但它只能读取95,926条记录中的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);
}
为什么不读取所有记录?