Returns column metadata information.
public struct a_sqlany_column_info
Member 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 |
Indicates whether a value in the column can be null. |
precision |
unsigned short |
The precision. |
scale |
unsigned short |
The scale. |
type |
a_sqlany_data_type |
The column data type. |
sqlany_get_column_info() can be used to populate this structure.
To view an example of the a_sqlany_column_info structure in use, see dbcapi_isql.cpp .
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |