fetch into: batch arrays

fetch returns the specified number of rows from the currently active set. Each fetch returns the subsequent batch of rows. For example, if the currently active set has 150 rows and you select and fetch 60 rows, the first fetch returns the first 60 rows. The next fetch returns the following 60 rows. The third fetch returns the last 30 rows.

NoteTo find the total number of rows fetched, see the SQLERRD variable in the SQLCA, as described in “SQLCA variables”.