SQLGetData

This function retrieves data for a single column in the current row of the result set.

Syntax :

RETCODE SQLGetData (hstmt, icol, fcType, value, valuesMax, pcbValue );

Arguments :

The arguments for SQLGetData are listed in below table.

TypeNameDescription
SQLHSTMTHStmtStatement handle
SQLSMALLINTicolColumn number for which the data retrieval is requested
SQLSMALLINTfcTypeApplication data type of the column identified by icol
SQLPOINTERvaluePointer to buffer where the retrieved column data is to be stored
SQLINTEGERvaluesMaxMaximum size of the buffer pointed to by value
SQLSMALLINT*pcbValuePointer to the value that indicates the number of bytes. The value is SQL_NULL_DATA if the data value of the column is null. If this pointer is NULL
Page last modified on September 25, 2009, at 12:23 PM