The following diagram shows the syntax for termination_spec
and enclosure_spec
.
Table 10-3 describes the syntax for the termination and enclosure specifications used to specify delimiters.
Table 10-3 Parameters Used for Specifying Delimiters
Parameter | Description |
---|---|
|
Data is read until the first occurrence of a delimiter. |
|
An optional word to increase readability. |
|
Delimiter is any whitespace character including spaces, tabs, blanks, line feeds, form feeds, or carriage returns. (Only used with |
|
Data can be enclosed by the specified character. If SQL*Loader finds a first occurrence of the character, then it reads the data value until it finds the second occurrence. If the data is not enclosed, then the data is read as a terminated field. If you specify an optional enclosure, then you must specify a |
|
The data will be found between two delimiters. |
|
The delimiter is a string. |
|
The delimiter is a string that has the value specified by |
|
Specifies a trailing enclosure delimiter that may be different from the initial enclosure delimiter. If |
|
Indicates that the entire file has been loaded into the LOB. This is valid only when data is loaded from a LOB file. Fields terminated by |
Here are some examples, with samples of the data they describe:
TERMINATED BY ',' a data string, ENCLOSED BY '"' "a data string" TERMINATED BY ',' ENCLOSED BY '"' "a data string", ENCLOSED BY '(' AND ')' (a data string)