SQLColAttributes - Obtain column attributes
SQLColAttributes() has been deprecated and replaced by SQLColAttribute().
Although this release version of DB2® CLI continues to support SQLColAttributes(), it is recommended that you begin using SQLColAttribute() in your DB2 CLI programs so that they conform to the latest standards.”
Unicode (UTF-16) equivalent: This function
can also be used with the Unicode (UTF-16) character set. The corresponding
Unicode function is SQLColAttributesW(). Refer to Unicode in Db2 for i CLI for more information about Unicode
support for DB2 CLI.
Syntax
SQLRETURN SQLColAttributes (SQLHSTMT StatementHandle,
SQLSMALLINT ColumnNumber,
SQLSMALLINT FieldIdentifier,
SQLCHAR *CharacterAttributePtr,
SQLINTEGER BufferLength,
SQLINTEGER *StringLengthPtr,
SQLINTEGER *NumericAttributePtr);
Note: Refer
to SQLColAttribute - Return a column attribute for a description of
the applicable sections.