Library: OCI
Include: omoci.xin
|
Returns: Numeric
Returns OCI_SUCCESS if the function completes without error.
|
Declaration define external counter function OCI_oexfet
( value OCI_Handle_type cursor,
value counter nrows,
value counter cancel,
value counter exact
)
Purpose
This function executes the SQL statement associated with a cursor, then fetches one or more rows. This function can also cancel the cursor.
Input arguments:
- cursor -- Cursor data area descriptor.
- nrows -- The number of rows to fetch.
- cancel -- If this parameter is non-zero, the cursor is cancelled after the fetch completes. The following values are allowed:
- OCI_CANCEL -- The cursor is cancelled after the fetch completes.
- OCI_NOCANCEL -- The cursor is not cancelled.
- exact -- If this parameter is non-zero, an error is returned if the number of rows that satisfy the query is not exactly the same as the nrows value. Nevertheless, the rows are returned. The following values are allowed:
- OCI_EXACT -- Raises an error if fewer than the requested rows are fetched.
- OCI_NOEXACT -- No error is raised.
Example:
set RetCode to OCI_oexfet
( Cursor,
1,
OCI_NOCANCEL,
OCI_NOEXACT
)
Generated: April 21, 1999 at 2:01:13 pm
If you have any comments about this section of the documentation, send email to [email protected]
Copyright © OmniMark Technologies Corporation, 1988-1999.