SQLConnect Function SQLCopyDesc Function SQLDataSources Function SQLDescribeCol Function SQLDescribeParam Function SQLDisconnect Function SQLDriverConnect Function SQLDrivers Function SQLEndTran Function SQLError Function SQLExecDirect Function SQLExecute Function ...
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通常返回的...
(Function returns SQL_SUCCESS_WITH_INFO.) 01S01 Error in row An error occurred while fetching one or more rows. (Function returns SQL_SUCCESS_WITH_INFO.) 01S06 Attempt to fetch before the result set returned the first rowset The requested rowset overlapped the start of the result set when...
SQLExtendedFetch 會從結果集擷取指定的數據列集,並傳回所有系結數據行的數據。 數據列集可以在絕對位置或相對位置或書籤指定。注意 在ODBC 3*.x*中, SQLExtendedFetch 已由SQLFetchScroll 取代。 ODBC 3*.x* 應用程式不應該呼叫 SQLExtendedFetch,而是應該呼叫 SQLFetchScroll。 使用 ODBC 2*.x* 驅動程式時,...
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函数中使用游...
描述符和 SQLFetch 以下部分描述了SQLFetch()如何与描述符交互。 参数映射 驱动程序不会根据SQLFetch()的自变量设置任何描述符字段。 其他描述符字段 SQLFetch()使用以下描述符字段: 表2. 描述符字段 描述符字段降序位置设置到 SQL_DESC_ARRAY_SIZE已使用头SQL_ATTR_ROW_ARRAY_SIZE 语句属性 ...
使用ODBC 2.x 驅動程式時,Driver Manager 會將此函式對應至SQLExtendedFetch。 如需詳細資訊,請參閱對應替代函式以取得應用程式的回溯相容性。 語法 C++複製 SQLRETURNSQLFetchScroll( SQLHSTMT StatementHandle, SQLSMALLINT FetchOrientation, SQLLEN FetchOffset); ...
(Function returns SQL_SUCCESS_WITH_INFO.) 01004 String data, right truncated String or binary data returned for a column resulted in the truncation of nonblank character or non-NULL binary data. If it was a string value, it was right-truncated. 01S01 Error in row An error occurred while ...
Function arguments Table 1. SQLFetch arguments Data typeArgumentUseDescription SQLHSTMTStatementHandleinputStatement handle Usage SQLFetch()can only be called after a result set has been generated on the same statement handle. BeforeSQLFetch()is called the first time, the cursor is positioned before...
mssql_fetch_field (PHP 4, PHP 5, PECL odbtp >= 1.1.1) mssql_fetch_field—Get field information Warning This function wasREMOVEDin PHP 7.0.0. Alternatives to this function include: PDOStatement::getColumnMeta() sqlsrv_field_metadata()...