OdbcDataReader.NextResult 方法

定义

读取批处理 SQL 语句的结果时,使 OdbcDataReader 前进到下一个结果。Advances the OdbcDataReader to the next result when reading the results of batch SQL statements.

public:
 override bool NextResult();
public:
 virtual bool NextResult();
public override bool NextResult ();
public bool NextResult ();
override this.NextResult : unit -> bool
abstract member NextResult : unit -> bool
override this.NextResult : unit -> bool
Public Overrides Function NextResult () As Boolean
Public Function NextResult () As Boolean

返回

如果存在多个结果集,则为 true;否则为 falsetrue if there are more result sets; otherwise false.

实现

注解

用于处理可通过执行批处理 SQL 语句生成的多个结果。Used to process multiple results that can be generated by executing batch SQL statements.

默认情况下,OdbcDataReader 位于第一个结果上。By default, the OdbcDataReader is positioned on the first result.

适用于

另请参阅