Resultset.next()

NES3+Syntax

							resultset.next()

Description

The next() method of the Resultset object moves the point in the current row to the next row in the result set. This method is used to iterate through each of the rows returned by the result set. This method returns true, unless it is the last row of the result set, at which time it returns false.

Example

Listing 8.115 creates an instance of the Resultset object and iterates through its results. This is performed by using the next() method.

Listing 8.115 Using the next() Method to Iterate Through the Rows in a Result Set
 <SERVER> // Run the stored procedure var myStproc = myConn.storedProc("sp_employees"); // Store the result set var myResultSet = myStproc.resultSet(); // Iterate ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.