DataReader是向前只读的记录集,它从数据库里一次只能读取一条记录,同时只将用户当前检查的记录保存在内存中。 所以要用循环 while(myReader.Read()) { .... } myReader.Close();