SQLFetch advances the cursor to the next row of the result set and retrieves any bound columns.
1 | SQLRETURN SQLFetch(SQLHSTMT StatementHandle); |
Keyword |
Description |
---|---|
StatementHandle |
Statement handle, obtained from SQLAllocHandle. |
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.
See Examples.