다음을 통해 공유


RFX_Single_Bulk

Transfers multiple rows of floating-point data from a column of an ODBC data source to a corresponding array in a CRecordset-derived object.

void RFX_Single_Bulk( 
   CFieldExchange* pFX, 
   LPCTSTR szName, 
   float** prgFltVals, 
   long** prgLengths  
);

매개 변수

  • pFX
    CFieldExchange 개체에 대한 포인터. This object contains information to define the context for each call of the function. For more information, see the article Record Field Exchange: How RFX Works.

  • szName
    The name of a data column.

  • prgFltVals
    A pointer to an array of float values. This array will store the data to be transferred from the data source to the recordset.

  • prgLengths
    A pointer to an array of long integers. This array will store the length in bytes of each value in the array pointed to by prgFltVals. Note that the value SQL_NULL_DATA will be stored if the corresponding data item contains a Null value. For more details, see the ODBC API function SQLBindCol in the ODBC SDK Programmer's Reference.

설명

The data source column must have an ODBC type of SQL_REAL. The recordset must define a field data member of type pointer to float.

If you initialize prgFltVals and prgLengths to NULL, then the arrays they point to will be allocated automatically, with sizes equal to the rowset size.

참고

Bulk record field exchange only transfers data from the data source to the recordset object.To make your recordset updateable, you must use the ODBC API function SQLSetPos.

For more information, see the articles Recordset: Fetching Records in Bulk (ODBC) and Record Field Exchange (RFX).

예제

See RFX_Text_Bulk.

요구 사항

헤더: afxdb.h

참고 항목

참조

RFX_Binary_Bulk

RFX_Bool_Bulk

RFX_Byte_Bulk

RFX_Date_Bulk

RFX_Double_Bulk

RFX_Int_Bulk

RFX_Long_Bulk

RFX_Text_Bulk

CFieldExchange::SetFieldType

개념

MFC 매크로 및 전역