Redirecting output
and messages
NULL value output
Bulk loading data using the LOAD TABLE statement
CHAPTER 5
The
redirection symbol redirects all output including error messages and
>&
statistics for the command on which it appears. For example:
SELECT *
FROM employee
>& empfile
Do not enclose the file name in quotation marks.
This example outputs the
output from the
SELECT
command.
The >& redirection method is useful for getting a log of what happens during
a
command. The statistics and errors of each command are written
READ
following the command in the redirected output file.
The most common reason to extract data is for use in other software products.
The other software package may not understand NULL values, however.
The DBISQL option
NULLS
output. Alternatively, you can use the
value whenever there is a NULL value.
For information on setting DBISQL options, see "SET OPTION statement" in
Adaptive Server IQ Reference Manual.
The
statement is used for efficient importing of data from a text
LOAD TABLE
or binary file into an existing database table. It loads data into any column
indexes you have defined, as well as any created automatically.
In order to use the
LOAD TABLE
the table.
See the description of the
errors occur during a load.
Moving Data In and Out of Databases
statement to the file empfile, followed by the
SELECT
statement and some statistics pertaining to the
allows you to choose how NULL values are
function to output a specific
IFNULL
statement, you need INSERT permission on
load option for what happens when
ON FILE ERROR
175