NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
L-21
LOAD Command
FIRST { ordinal-record-num }
{ KEY record-spec }
{ KEY key-value }
{ KEY (key-value[, key-value] ... ) }
{ key-specifier ALTKEY key-value }
{ key-specifier ALTKEY ( key-value }
{ [ , key-value ] ... ) }
specifies the starting record of the input file from which to begin loading. If you
omit FIRST, the load operation starts with the first record.
ordinal-record-num
is the number of records (from the beginning of the file) to skip. If you specify this
option for an unstructured disk file, the loading begins at the following offset:
ordinal-record-num * in-record-length
KEY record-spec
specifies the primary-key value for the starting record of an unstructured file, or of a
relative or entry-sequenced file or table. The record you name with KEY is the first
record to load. Specify record-spec as an integer from 0 through 4,294,967,295.
For unstructured files, record-spec is the starting relative byte address.
For relative files or tables, record-spec is the starting record number.
For entry-sequenced files or tables, record-spec is the Enscribe record
address. (See the Enscribe Programmer's Guide for a description of record
addresses in entry-sequenced files and tables.)
KEY { key-value }
{ ( key-value> [, key-value ] ... ) }
indicates the approximate position of the starting record for key-sequenced files.
Subsequent rows are obtained in primary key order. key-value is either a string
in quotation marks or an integer in the range 0 to 255. (Each integer represents the
value of 1 byte.)
For more information about specifying a FIRST KEY value, see Considerations—
LOAD on page L-31.
key-specifier ALTKEY { key-value }
{ (key-value [, key-value]...) }
indicates the approximate position within the specified alternate key file of the
starting record for key-sequenced files. Subsequent rows are obtained in alternate
key order.
key-specifier is a one-character or two-character string in quotation marks, or
a numeric literal in the range 0 through 32,767 that designates the alternate key to
use for the positioning.