Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual page 202

Table of Contents

Advertisement

Bulk loading data using the LOAD TABLE statement
Example
Example
182
Only one single-byte character can be used as an escape character.
Note
Because you must specify
Server IQ, the
ESCAPE CHARACTER
compatibility with Adaptive Server Anywhere.
WITH CHECKPOINT ON clause
issued when the
LOAD TABLE
recovery is required, it is guaranteed even if the data file is then removed from
the system.
If
WITH CHECKPOINT ON
retained in case recovery is required.
BLOCK SIZE option
should be read. This option only affects variable-length input data read from
files; it is not valid for fixed-length input fields. It is similar to
, but there are no restrictions on the relationship of record size to block
FACTOR
size. You cannot specify this option along with the
The default setting for
BLOCK SIZE
from disk files. For tape files, you should specify the same block size that was
used when creating the tape. You cannot specify
or with any fixed width input fields.
BLOCK FACTOR
The following UNIX example specifies a
LOAD TABLE
mm
(l_orderkey '\x09',
l_quantity '\x09',
l_shipdate DATE('YYYY/MM/DD'))
FROM '/d1/MILL1/tt.t'
BLOCK SIZE 200000
BYTE ORDER option
option applies to all binary input fields, including those defined as PREFIX 2
or PREFIX 4. If none are defined, this option is ignored. Adaptive Server IQ
always reads prefix binary data in the format native to the machine it is running
on (default is
). You can also specify:
NATIVE
when multibyte quantities have the high order byte first (for big
HIGH
endian platforms like Sun, IBM AIX, HP, and Silicon Graphics IRIX).
when multibyte quantities have the low order byte first (for little
LOW
endian platforms like DEC ALPHA, and Windows NT).
Here is a Windows NT example:
in this version of Adaptive
ESCAPES OFF
option has no effect. It is provided for
If this option is set to
statement completes and is logged. In the event
is not specified, the file used for loading must be
Specifies the default size in bytes in which input
is 500,000, which is high enough for input
BLOCK SIZE
BLOCK SIZE
Specifies the byte ordering during reads. This
, a checkpoint is
ON
BLOCK
option.
BLOCK FACTOR
along with
of 200,000 bytes:

Advertisement

Table of Contents
loading

Table of Contents