INFORMIX
Informix-ESQL/C Programmer's Manual
Chapter 7: Working with INFORMIX-Universal Server Smart Large
Home Contents Index Master Index New Book

Creating a Smart Large Object

Perform the following steps to create a smart large object:

1. Allocate an LO-specification structure with the ifx_lo_def_create_spec() function.

    2. Ensure that the LO-specification structure contains the desired storage characteristics for the new smart large object.

    3. Create an LO-pointer structure for the new smart large object and open the smart large object with the ifx_lo_create() function.

    4. Write the data for the new smart large object to the open smart large object with the ifx_lo_write() or ifx_lo_writewithseek() function. For more information, see "Writing Data to a Smart Large Object".

    5. Save the new smart large object in a column of the database.

    6. Deallocate the LO-specification structure with the ifx_lo_spec_free() function.

For more information on creating a smart large object, see "The LO-Specification Structure".




Informix-ESQL/C Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.