ADO.NET教程(六)

DataReader读取数据基本步骤

1、创建Command对象

2、调用ExecuteReader()创建DataReader对象

3、使用DataReader的Read()方法逐行读取数据

4、读取某列的数据,(type)dataReader[]

5、关闭DataReader对象

原文地址:https://www.cnblogs.com/aipohoo/p/5428349.html