August 1999
Intermediate to advanced
1488 pages
72h 53m
English
cursor.next()
The next() method of the Cursor object moves the point in the current row to the next row in the cursor. This method is used to iterate through each of the rows returned by the cursor. This method returns true, unless it is the last row of the cursor, at which time it returns false.
Listing 8.34 creates an instance of the Cursor object and iterates through its results, deleting each row. This is performed by using the next() method.
<SERVER> var currRow = myConn.cursor('SELECT * FROM employees WHERE uid <= 200'); // Delete each row in the cursor. while(currRow.next(){ currRow.delete("employees"); } // ... |
Read now
Unlock full access