An sqlda structure
The sqlda structure is a C structure (defined in the sqlda.h header file) that holds data returned from a prepared statement.
Each sqlda structure has three parts:
- A fixed-size portion is made up of the sqld field, which contains the number of columns described in the sqlda structure.
- A variable-length portion contains an sqlvar_struct structure for each column value. Each sqlvar_struct structure is a fixed-size structure.
- Descriptive information is included about the sqlda structure itself. For more information, see Descriptive fields in the sqlda structure.
The following figure shows what an sqlda structure looks
like for two values.
Schematic that shows sqlda structure for two values shows the column data in the sqldata fields in a single data buffer. This data can also be stored in separate buffers.