Import support function

The import support function takes as an argument the structure that holds the bulk-copy format of the external representation of the user-defined type and returns the internal structure for the user-defined type.

Any files that the import function reads must reside on the database server computer. If you do not provide an import support function, the database server uses the input support function to import text data.

For C language support, the following function signature is for an import support function of an opaque data type whose internal structure is ll_longlong_t:
ll_longlong_t * ll_longlong_import(mi_impexp
*extrnl_bcopy_format);

The ll_longlong_import() function is a cast function from the IMPEXP data type to the ll_longlong_t data structure. It must be registered as an implicit cast function with the CREATE IMPLICIT CAST statement. For more information about cast functions, see Create casts for opaque data types.