1.1

Table Of Contents
Usage
For additional information on using this procedure see the section "Using the bulk import and export procedures"
in the Apache Derby Tools and Utilities Guide.
Example
The following example imports some of the data elds from a delimited data le called data.del into the
STAFF table. The import procedure uses the default import implementation with 2 threads, and does not lock
the target table:
CALL SYSCS_UTIL.IMPORT_DATA
(NULL, 'STAFF', null, '1,3,4', 'data.del', null, null, null, 0, 0, 2,
0, null, null)
SYSCS_UTIL.IMPORT_DATA_LOBS_FROM_EXTFILE system procedure
Use the SYSCS_UTIL.IMPORT_DATA_LOBS_FROM_EXTFILE system procedure to import data to a subset
of columns in a table, where the LOB data is stored in a separate le. The main import le contains all of the
other data and a reference to the location of the LOB data.
Syntax
SYSCS_UTIL.IMPORT_DATA_LOBS_FROM_EXTFILE (
IN SCHEMANAME VARCHAR(128),
IN TABLENAME VARCHAR(128),
IN INSERTCOLUMNS VARCHAR(32672),
IN COLUMNINDEXES VARCHAR(32672),
IN FILENAME VARCHAR(32672),
IN COLUMNDELIMITER CHAR(1),
IN CHARACTERDELIMITER CHAR(1),
IN CODESET VARCHAR(128),
IN REPLACE SMALLINT)
IN LOCKTABLE SMALLINT, IN NUMTHREADS INTEGER, IN CASESENSITIVENAMES
SMALLINT
IN IMPORTCLASSNAME VARCHAR(32672), IN ERRORFILE VARCHAR(32672))
The import utility looks in the main import le for a reference to the location of the LOB data.
Species the schema of the table. You can specify a NULL value to use the
default schema name. The SCHEMANAME parameter takes an input argument
that is a VARCHAR (128) data type.
SCHEMANAME
Species the name of the table into which the data is to be imported. This table
cannot be a system table or a declared temporary table. The string must exactly
TABLENAME
match case of the table name. Specifying a NULL value results in an error. The
TABLENAME parameter takes an input argument that is a VARCHAR (128)
data type.
Species the comma separated column names of the table into which the data
will be imported. You can specify a NULL value to import into all columns of
INSERTCOLUMNS
the table. The INSERTCOLUMNS parameter takes an input argument that is a
VARCHAR (32672) data type.
Species the comma separated column indexes (numbered from one) of the
input data elds that will be imported. You can specify a NULL value to use
COLUMNINDEXES
all input data elds in the le. The COLUMNINDEXES parameter takes an
input argument that is a VARCHAR (32762) data type.
Species the name of the le that contains the data to be imported. If the path
is omitted, the current working directory is used. The specied location of the
FILENAME
vFabric SQLFire User's Guide586
vFabric SQLFire Reference