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.
| Type | Name | Description |
| SQLHSTMT | hStmt | Statement handle |
| SQLSMALLINT | colNo | This argument corresponds to the column number of result data, ordered sequentially from left to right, starting at 1. |
| SQLSMALLINT | fieldIdent | The field in row colNo of the IRD that is to be returned |
| SQLPOINTER | CharAttrPtr | Pointer to a buffer in which to return the value in the fieldIdent field of the colNo row of the IRD |
| SQLSMALLINT | bufLen | Number of SQLCHAR elements |
| SQLSMALLINT | strLenPtr | Pointer to a buffer in which to return the total number of bytes |
| SQLPOINTER | numAttrPtr | Pointer to a buffer in which to return the value in the fieldIdent field of the colNo row of the IRD |