COLUMNDELIMITER
Derby Reference Manual
164
Specifying a NULL value results in an error. The FILENAME parameter takes an input
argument that is a VARCHAR (32672) data type.
COLUMNDELIMITER
Specifies a column delimiter. The specified character is used in place of a comma to
signify the end of a column. You can specify a NULL value to use the default value of
a comma. The COLUMNDELIMITER parameter must be a CHAR (1) data type.
CHARACTERDELIMITER
Specifies a character delimiter. The specified character is used in place of double
quotation marks to enclose a character string. You can specify a NULL value to
use the default value of a double quotation mark. The CHARACTERDELIMITER
parameter takes an input argument that is a CHAR (1) data type.
CODESET
Specifies the code set of the data in the export file. The code set name should be one
of the Java-supported character encoding sets. Data is converted from the database
code page to the specified code page before writing to the file. You can specify a
NULL value to write the data in the same code page as the JVM in which it is being
executed. The CODESET parameter takes an input argument that is a VARCHAR
(128) data type.
LOBSFILENAME
Specifies the file that the large object data is exported to. If the path is omitted,
the lob file is created in the same directory as the main export file. If you specify
the name of an existing file, the export utility overwrites the contents of the file.
The data is not appended to the file. If you are using the Network Server, the file
should be in a server-side location. Specifying a NULL value results in an error. The
LOBSFILENAME parameter takes an input argument that is a VARCHAR (32672)
data type.
If you create a schema, table, or column name as a non-delimited identifier, you must
pass the name to the export procedure using all uppercase characters. If you created a
schema or table name as a delimited identifier, you must pass the name to the export
procedure using the same case that was used when it was created.
Execute privileges
If authentication and SQL authorization are both enabled, only the
execute privileges on this procedure by default. See "Enabling user authentication" and
"Setting the SQL standard authorization mode" in the Derby Developer's Guide for more
information. The database owner can grant access to other users. The user must also
have SELECT privileges on the table.
Usage
For additional information on using this procedure, see the section "Importing and
exporting data" in the Derby Server and Administration Guide.
Example exporting all data from a table, using a separate export file for the LOB
data
The following example shows how to export data from the STAFF table in a sample
database to the main file
staff.del
and the LOB export file
pictures.dat
.
CALL SYSCS_UTIL.SYSCS_EXPORT_TABLE_LOBS_TO_EXTFILE(
'APP', 'STAFF', 'c:\data\staff.del', ',' ,'"',
'UTF-8', 'c:\data\pictures.dat');
SYSCS_UTIL.SYSCS_EXPORT_QUERY system procedure
The
SYSCS_UTIL.SYSCS_EXPORT_QUERY
system procedure exports the results of a
SELECT statement to an operating system file.