To load data from the data file, SQL*Loader must know the length and location of the field. To specify the position of a field in the logical record, use the POSITION
clause in the column specification. The position may either be stated explicitly or relative to the preceding field. Arguments to POSITION
must be enclosed in parentheses. The start, end, and integer values are always in bytes, even if character-length semantics are used for a data file.
The syntax for the position specification (pos_spec) clause is as follows:
Table 10-1 describes the parameters for the position specification clause.
Table 10-1 Parameters for the Position Specification Clause
Parameter | Description |
---|---|
|
The starting column of the data field in the logical record. The first byte position in a logical record is 1. |
|
The ending position of the data field in the logical record. Either |
|
Specifies that the data field follows immediately after the previous field. If you use |
+i |
You can use an offset, specified as +i |
You may omit POSITION
entirely. If you do, then the position specification for the data field is the same as if POSITION(*)
had been used.