Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere C API reference


a_sqlany_column_info struct

Used to return column metadata information.

typedef struct a_sqlany_column_info
    char *			name;		
    a_sqlany_data_type		type;	
    a_sqlany_native_type	native_type;
    unsigned short		precision;
    unsigned short		scale;
    size_t 			max_size;
    sacapi_bool			nullable;
} a_sqlany_column_info;
Name Type Description
max_size size_t The maximum size a data value in this column can take.
name char * The name of the column (null-terminated). The string can be referenced as long as the result set object is not freed.
native_type a_sqlany_native_type The native type of the column in the database.
nullable sacapi_bool If a value in the column can be null or not.
precision unsigned short Precision.
scale unsigned short Scale.
type a_sqlany_data_type The column data type.

You can use sqlany_get_column_info to populate this structure.


To view an example of the a_sqlany_column_info structure in use, see: