SQLFetch

Function

SQLFetch advances the cursor to the next row of the result set and retrieves any bound columns.

Prototype

1
SQLRETURN SQLFetch(SQLHSTMT    StatementHandle);

Parameter

Table 1 SQLFetch parameters

Keyword

Description

StatementHandle

Statement handle, obtained from SQLAllocHandle.

Return Values

Precautions

If SQLFetch returns SQL_ERROR or SQL_SUCCESS_WITH_INFO, the application can then call SQLGetDiagRec, set HandleType and Handle to SQL_HANDLE_STMT and StatementHandle, and obtain the SQLSTATE value. The SQLSTATE value provides the detailed function calling information.

Examples

See Examples.