SQL_SUCCESS、SQL_SUCCESS_WITH_INFO、SQL_NO_DATA、SQL_STILL_EXECUTING、SQL_ERROR或SQL_INVALID_HANDLE。 诊断 当SQLFetch返回SQL_ERROR或SQL_SUCCESS_WITH_INFO时,可以通过使用 handleTypeof SQL_HANDLE_STMT 和StatementHandle句柄调用S
SQL_SUCCESS、SQL_SUCCESS_WITH_INFO、SQL_NO_DATA、SQL_STILL_EXECUTING、SQL_ERROR或SQL_INVALID_HANDLE。 诊断 当SQLFetch返回SQL_ERROR或SQL_SUCCESS_WITH_INFO时,可以通过使用 handleTypeof SQL_HANDLE_STMT 和StatementHandle句柄调用SQLGetDiagRec 函数来获取关联的 SQLSTATE 值。 下表列出了 SQLFetch通常返回的...
in the context of this function; the notation "(DM)" precedes the descriptions of SQLSTATEs returned by the Driver Manager. The return code associated with each SQLSTATE value is SQL_ERROR, unless noted otherwise. If an error occurs on a single column,SQLGetDiagFieldcan be called with a...
SQLBindCol Function SQLBindParameter Function SQLBrowseConnect Function SQLBulkOperations Function SQLCancel Function SQLCancelHandle Function SQLCloseCursor Function SQLColAttribute Function SQLColAttributes Function SQLColumnPrivileges Function SQLColumns Function SQLCompleteAsync Function SQLConnect Function SQLCopyDesc...
FETCH [ direction [ FROM | IN ] ] cursor_name 其中 direction 可以为空或者以下之一: NEXT PRIOR FIRST LAST ABSOLUTE count RELATIVE count count ALL FORWARD FORWARD count FORWARD ALL BACKWARD BACKWARD count BACKWARD ALL 说明 这个页面描述在 SQL 命令层面上对游标的使用。如果想要在 PL/SQL函数中使用游...
使用ODBC 2.x 驅動程式時,Driver Manager 會將此函式對應至SQLExtendedFetch。 如需詳細資訊,請參閱對應替代函式以取得應用程式的回溯相容性。 語法 C++複製 SQLRETURNSQLFetchScroll( SQLHSTMT StatementHandle, SQLSMALLINT FetchOrientation, SQLLEN FetchOffset); ...
與SQLBindCol() 連結的應用程式變數數目不得超過結果集中的欄數,否則 SQLFetch() 會失敗。 如果尚未呼叫 SQLBindCol() 來連結任何直欄,則 SQLFetch() 不會將資料傳回至應用程式,而只會前進游標。 在此情況下,可以呼叫 SQLGetData() 以個別取得所有直欄。 如果游標是多列游標 (亦即, SQL_ATTR_ROW_ARRAY_SIZE...
fetch('./api/some.json').then(function(response){if(response.status!==200){console.log('Looks like there was a problem. Status Code: '+response.status);return;}// Examine the text in the responseresponse.json().then(function(data){console.log(data);});}).catch(function(err){console...
To retrieve the last fetch status of a specific cursor, query the fetch_status column of the sys.dm_exec_cursors dynamic management function. Examples This example uses @@FETCH_STATUS to control cursor activities in a WHILE loop. SQL Másolás DECLARE Employee_Cursor CURSOR FOR SELECT Business...
SQL_FETCH_PRIOR SQL_FETCH_FIRST SQL_FETCH_last SQL_FETCH_ABSOLUTE SQL_FETCH_RELATIVE SQL_FETCH_BOOKMARK 如需相關資訊,請參閱 定位游標。 SQLLEN FetchOffset 輸入(input) 要提取的列數。 此引數的解譯取決於 FetchOrientation 引數的值。 如需相關資訊,請參閱 定位游標。 使用情形 概觀 SQLFetchScroll(...