Data structures for smart large objects
supports
the SQL data types CLOB and BLOB with the ifx_lo_t data type.
Because of the potentially huge size of smart-large-object data, the program
does not store the data directly in a host variable. Instead, the
client application accesses the data as a file-like structure. To
use smart-large-object variables in the program,
take the following actions:
- Declare a host variable with the ifx_lo_t data type.
For more information, see Declare a host variable.
- Access the smart large object with a combination of the following
three data structures:
- The LO-specification structure, ifx_lo_create_spec_t
For more information, see The LO-specification structure and Obtain storage characteristics.
- The LO-pointer structure, ifx_lo_t
For more information, see Deallocate the LO-specification structure.
- An integer LO file descriptor
For more information, see Open a smart large object.
- The LO-specification structure, ifx_lo_create_spec_t
Important: The structures that
ESQL/C uses to access smart large objects begin with the LO prefix.
This prefix is an acronym for large object. Currently, the database
server uses large object to refer to both smart large objects
and simple large objects. However, use of this prefix in the ESQL/C
structures that access smart large objects is retained for legacy
purposes.