standard.db.sql.ODBCDescribeCol

ODBCDescribeCol is available since version 1.0.

Prototype:

number ODBCDescribeCol(number column_index, var string name, var number type, var number size, var number scale, var boolean nullable, number statament_handle)

Parameters

colum_index
[in] the index of the column which description is needed
name
[out] the column name
type
[out] the column type
size
[out] the column size
scale
[out] the scale of the column
nullable
[out] true if the a record on the column can have null values (SQL_NULL, not Concept null)
statement
[in] the statement handle (or result set) as returned by ODBCStatement, ODBCListTables, ODBCListColumns, ODBCListTypes or ODBCExecuteQuery

Description:

Describe a column in a result set.

Return value:

Return -1 if failed (call ODBCError to retrieve the error) or 0 if succeeded.