Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
代表正从数据库中读取的一组行。
Public Interface DBRowReader
public interface DBRowReader
DBRowReader 接口的所有成员,包括所有继承的成员。
Close 方法
NextRow 方法
ColumnNames 属性
ColumnTypes 属性
执行 ExecuteReader 方法可创建一个 DBRowReader。
以下 C# 代码用给定的 DBRowReader 所代表的结果集中的行来调用一个函数:
DBCommand stmt = conn.CreateCommand(); stmt.CommandText = "select intCol, strCol from table1 "; DBRowReader rs = stmt.ExecuteReader(); object[] values = rset.NextRow(); while( values != null ) { handleRow( (int)values[0], (String)values[1] ); values = rset.NextRow(); } rset.Close(); stmt.Close();
Close 方法NextRow 方法ColumnNames 属性ColumnTypes 属性