SQLColAttribute

This function obtains an attribute for a column of the result set, and is also used to determine the number of columns.

Syntax :

RETCODE SQLColAttribute (hstmt, colNo, fieldIdent, charAttrPtr, bufLen, strLenPtr, numAttrPtr );

Arguments:

The arguments for SQLColAttribute are listed in below table.

TypeNameDescription
SQLHSTMThStmtStatement handle
SQLSMALLINTcolNoThis argument corresponds to the column number of result data, ordered sequentially from left to right, starting at 1.
SQLSMALLINTfieldIdentThe field in row colNo of the IRD that is to be returned
SQLPOINTERCharAttrPtrPointer to a buffer in which to return the value in the fieldIdent field of the colNo row of the IRD
SQLSMALLINTbufLenNumber of SQLCHAR elements
SQLSMALLINTstrLenPtrPointer to a buffer in which to return the total number of bytes
SQLPOINTERnumAttrPtrPointer to a buffer in which to return the value in the fieldIdent field of the colNo row of the IRD
Page last modified on September 25, 2009, at 12:27 PM