fetch

Description

Returns a row or a set of rows from a cursor result set.

Syntax

fetch cursor_name [ into fetch_target_list ]

Usage


Server class ASEnterprise

If the cursor is read only, Component Integration Services sends a language request to the remote server when the first fetch is received after the cursor is opened. Otherwise, Component Integration Services declares a cursor to the remote server by means of Client-Library.


Server class ASAnywhere

Handling of the fetch statement is the same as for ASEnterprise.


Server class ASIQ

Component Integration Services sends a language request to the remote server when the first fetch is requested after the cursor is opened.


Server class direct_connect

Component Integration Services treats servers in this class the same as servers in ASEnterprise.


Server class db2

Component Integration Services sends a language request to the remote server when the first fetch is requested after the cursor is opened.

See also

close, deallocate cursor, declare cursor, open in this chapter

fetch in the Reference Manual