mi_string *mi_column_name(row_desc, column_id)
MI_ROW_DESC *row_desc;
mi_integer column_id;
Valid in Client LIBMI Application? | Valid in User-Defined Routine? |
---|---|
Yes | Yes |
A row descriptor can describe the structure of a row in a table or the structure of a row type. From the row descriptor that row_desc references, the mi_column_name( ) function obtains the name of a column for either structure:
The name that mi_column_name( ) returns is a pointer to a null-terminated string.
The mi_column_name( ) function allocates memory in the current memory duration for the string that it returns.
See also the descriptions of mi_column_count( ), mi_column_id( ), mi_column_nullable( ), mi_column_precision( ), mi_column_scale( ), mi_column_type_id( ), mi_column_typedesc( ), mi_get_row_desc( ), and mi_get_row_desc_without_row( ).
For more information about row descriptors, see the IBM Informix: DataBlade API Programmer's Guide.