共用方式為


next Method (SQLServerResultSet)

Moves the cursor down one row from its current position.

public boolean next()

傳回值

true if the new current row is valid. false if there are no more rows to process.

例外狀況

SQLServerException

備註

This next method is specified by the next method in the java.sql.ResultSet interface.

A result set cursor is initially positioned before the first row. The first call to the next method makes the first row the current row, the second call makes the second row the current row, and so on.

If an input stream is open for the current row, a call to the next method will implicitly close it. A warning chain for the SQLServerResultSet object is cleared when a new row is read.

另請參閱

參考

SQLServerResultSet Class

概念

SQLServerResultSet Methods
SQLServerResultSet Members